projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ef960
)
crypto: marvell - Use kzfree rather than its implementation
author
zhong jiang
<zhongjiang@huawei.com>
Wed, 4 Sep 2019 03:01:17 +0000
(11:01 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 9 Sep 2019 13:48:40 +0000
(23:48 +1000)
Use kzfree instead of memset() + kfree().
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/hash.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/marvell/hash.c
b/drivers/crypto/marvell/hash.c
index 0f0ac851f4eb8951e476f0b9b14c254b84921e8b..a2b35fb0fb890637795d68b12bdc0b8d0b5f7436 100644
(file)
--- a/
drivers/crypto/marvell/hash.c
+++ b/
drivers/crypto/marvell/hash.c
@@
-1148,8
+1148,7
@@
static int mv_cesa_ahmac_pad_init(struct ahash_request *req,
}
/* Set the memory region to 0 to avoid any leak. */
- memset(keydup, 0, keylen);
- kfree(keydup);
+ kzfree(keydup);
if (ret)
return ret;