diff options
-rw-r--r-- | crypto/ahash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index 28a33d06c274..33a4ff45f842 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c | |||
@@ -223,7 +223,7 @@ static int ahash_op_unaligned(struct ahash_request *req, | |||
223 | 223 | ||
224 | priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), | 224 | priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), |
225 | (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? | 225 | (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? |
226 | GFP_ATOMIC : GFP_ATOMIC); | 226 | GFP_KERNEL : GFP_ATOMIC); |
227 | if (!priv) | 227 | if (!priv) |
228 | return -ENOMEM; | 228 | return -ENOMEM; |
229 | 229 | ||
@@ -333,7 +333,7 @@ static int ahash_def_finup(struct ahash_request *req) | |||
333 | 333 | ||
334 | priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), | 334 | priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), |
335 | (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? | 335 | (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? |
336 | GFP_ATOMIC : GFP_ATOMIC); | 336 | GFP_KERNEL : GFP_ATOMIC); |
337 | if (!priv) | 337 | if (!priv) |
338 | return -ENOMEM; | 338 | return -ENOMEM; |
339 | 339 | ||