Commit 60b3990c authored by zhong jiang's avatar zhong jiang Committed by David S. Miller

sunrpc: Use kzfree rather than its implementation.

Use kzfree instead of memset() + kfree().
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10ae8f4e
...@@ -228,14 +228,11 @@ u32 krb5_derive_key(const struct gss_krb5_enctype *gk5e, ...@@ -228,14 +228,11 @@ u32 krb5_derive_key(const struct gss_krb5_enctype *gk5e,
ret = 0; ret = 0;
err_free_raw: err_free_raw:
memset(rawkey, 0, keybytes); kzfree(rawkey);
kfree(rawkey);
err_free_out: err_free_out:
memset(outblockdata, 0, blocksize); kzfree(outblockdata);
kfree(outblockdata);
err_free_in: err_free_in:
memset(inblockdata, 0, blocksize); kzfree(inblockdata);
kfree(inblockdata);
err_free_cipher: err_free_cipher:
crypto_free_sync_skcipher(cipher); crypto_free_sync_skcipher(cipher);
err_return: err_return:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment