crypto: ahash - Use GFP_KERNEL on allocation if the request can sleep
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 24 Jul 2009 05:56:31 +0000 (13:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jul 2009 05:56:31 +0000 (13:56 +0800)
commitd17613078453ade6ec0872dc3dc270a7dcbbddfc
tree0fd9e4a8e95b1e487742ad3c23e3f2bc188a82ac
parentf04b9cc3331f013599a8f2c0fd07e2058712127f
crypto: ahash - Use GFP_KERNEL on allocation if the request can sleep

ahash_op_unaligned() and ahash_def_finup() allocate memory atomically,
regardless whether the request can sleep or not. This patch changes
this to use GFP_KERNEL if the request can sleep.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c