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:
zhong jiang 2019-09-04 11:01:19 +08:00 committed by Greg Kroah-Hartman
parent 74eb9c06b1
commit 4e690bf985
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}