projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm64: Limit the CMA buffer to 32-bit if ZONE_DMA
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
ccm.c
diff --git
a/crypto/ccm.c
b/crypto/ccm.c
index 3e05499d183aa8e49d41b83be448e7f52d76b10c..1df84217f7c9320dbfc5174f91ce394667c36447 100644
(file)
--- a/
crypto/ccm.c
+++ b/
crypto/ccm.c
@@
-271,7
+271,8
@@
static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain,
}
/* compute plaintext into mac */
- get_data_to_compute(cipher, pctx, plain, cryptlen);
+ if (cryptlen)
+ get_data_to_compute(cipher, pctx, plain, cryptlen);
out:
return err;