mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
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>
This commit is contained in:
parent
27b3b22dd9
commit
d800e3430e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user