summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2018-02-19 17:51:24 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-02 19:03:16 +0300
commitd800e3430e51e3450d8fa25b2eb2a50e5e413f29 (patch)
tree168b3c932f67e25da934402567c4abf669e3ed34
parent27b3b22dd98caef023cbaa4871b356e4596a81af (diff)
downloadlinux-d800e3430e51e3450d8fa25b2eb2a50e5e413f29.tar.xz
crypto: ccree - replace memset+kfree with kzfree
Replace memset to 0 followed by kfree with kzfree for simplicity. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/ccree/cc_request_mgr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/ccree/cc_request_mgr.c b/drivers/crypto/ccree/cc_request_mgr.c
index 2fa06630ead8..83a8aaae61c7 100644
--- a/drivers/crypto/ccree/cc_request_mgr.c
+++ b/drivers/crypto/ccree/cc_request_mgr.c
@@ -81,8 +81,7 @@ void cc_req_mgr_fini(struct cc_drvdata *drvdata)
/* Kill tasklet */
tasklet_kill(&req_mgr_h->comptask);
#endif
- memset(req_mgr_h, 0, sizeof(struct cc_req_mgr_handle));
- kfree(req_mgr_h);
+ kzfree(req_mgr_h);
drvdata->request_mgr_handle = NULL;
}