diff options
author | zhong jiang <zhongjiang@huawei.com> | 2019-09-04 06:01:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-04 09:25:22 +0300 |
commit | 4e690bf985bd2e1517f58d514bd73222062e0ce8 (patch) | |
tree | 41353d00e81c104484d9e546f0e35c9c14953f63 | |
parent | 74eb9c06b1d722468db397595ac6834b9e4ac235 (diff) | |
download | linux-4e690bf985bd2e1517f58d514bd73222062e0ce8.tar.xz |
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>
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_security.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c index 979056c3d397..57cfe06d7d73 100644 --- a/drivers/staging/rtl8723bs/core/rtw_security.c +++ b/drivers/staging/rtl8723bs/core/rtw_security.c @@ -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); } |