mirror of https://gitee.com/openkylin/linux.git
Staging: rtl8723bs: Use kzfree rather than its implementation
Use kzfree instead of memset() + kfree(). Signed-off-by: zhong jiang <zhongjiang@huawei.com> Link: https://lore.kernel.org/r/1567566079-7412-4-git-send-email-zhongjiang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
74eb9c06b1
commit
4e690bf985
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue