diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-14 21:48:35 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-14 21:48:35 +0800 |
commit | 1acf409121b18be1a44e5a8c540db3c8b6409521 (patch) | |
tree | 345cfc20e3ede5a8efd1e4176501769d78f8e54f /crypto | |
parent | c0b510b6489e20c0454d38c44aefd20528f3dfea (diff) | |
download | linux-crypto-1acf409121b18be1a44e5a8c540db3c8b6409521.tar.gz linux-crypto-1acf409121b18be1a44e5a8c540db3c8b6409521.zip |
crypto: ahash - Use GFP_KERNEL in unaligned setkey
We currently use GFP_ATOMIC in the unaligned setkey function
to allocate the temporary aligned buffer. Since setkey must
be called in a sleepable context, we can use GFP_KERNEL instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ahash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index 1576f95f..a196055b 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -145,7 +145,7 @@ static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, unsigned long absize; absize = keylen + alignmask; - buffer = kmalloc(absize, GFP_ATOMIC); + buffer = kmalloc(absize, GFP_KERNEL); if (!buffer) return -ENOMEM; |