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
wifi: create a new patch 'drivers/net/wireless/rockchip_wlan' for porting drivers.
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
ccm.c
diff --git
a/crypto/ccm.c
b/crypto/ccm.c
index 499c91717d937bfaba9364a5bcde94988626195c..ed009b77e67d1e99b771834fe55bb1950e3c529c 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;