projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2d3a1
)
crypto: ahash - Use GFP_KERNEL in unaligned setkey
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 14 Jul 2009 13:48:35 +0000
(21:48 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 14 Jul 2009 13:48:35 +0000
(21:48 +0800)
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>
crypto/ahash.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/ahash.c
b/crypto/ahash.c
index 1576f95f9afe7d6d8832e6a4cb3c47ab82ca7f80..a196055b73d3d87cf5c14ee102ab979326a72043 100644
(file)
--- 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;