Commit 4e690bf9 authored by zhong jiang's avatar zhong jiang Committed by Greg Kroah-Hartman

Staging: rtl8723bs: Use kzfree rather than its implementation

Use kzfree instead of memset() + kfree().
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Link: https://lore.kernel.org/r/1567566079-7412-4-git-send-email-zhongjiang@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 74eb9c06
......@@ -2290,8 +2290,7 @@ static void gf_mulx(u8 *pad)
static void aes_encrypt_deinit(void *ctx)
{
memset(ctx, 0, AES_PRIV_SIZE);
kfree(ctx);
kzfree(ctx);
}
......
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