Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp167772ybe; Tue, 3 Sep 2019 20:06:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxUY7KxuQDGDIK6szlFrDaSOF4y6QWm5WqUmmGNGf1d07sKt/qbDCnEE/QsqQIj7A0uiqG X-Received: by 2002:a65:6795:: with SMTP id e21mr22597232pgr.428.1567566365168; Tue, 03 Sep 2019 20:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567566365; cv=none; d=google.com; s=arc-20160816; b=PYDmbSOZ9nSvH5CtSYYlzCrwEns+wzSNTXDMapiNU5X6l2rdUQQSSY6S+L9nxDIwbV OCJPjhxCrPPPlc/2uIAUARj+3KSw0qINRsNucotGWxkigaTP4p+gh9BNrr3reI/wFRnZ I8g+zt/rWGiDmWdq9RKZxD6BPi0Lx1pD1syWZqEHJ4+YYVDRR9UiiCN/vsANGWyRdqMf a/f5VojhLzhTo3vL/x8yuAAFc5Ctml59zwz88R3Di+plY7D39T4m9W+3LDWNty9ZI6tL XrT/L0tAp0k9llWA63db1kvn0nILk526QA/M/eeq/W3LZRJdpXUdyn9HiiDXP4P7IBPi iovQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=VeQXD3btVZ4mNU3zJiq+HMJ70jlDb1QvIluvlCciUk8=; b=Fdayj18XB1Ulh/A1sveCljvQJ5Ibu118IBeK5D6fMgFMHJy6cZnfA/R116YW5qB/6R 0HJaKfGmMr0w/5E4NgVpDt5s1tV3E1ywqqcQJMGK2waDhewfv81ONZji+jH2eH2gdMBC dwOYetLCDKI9WLsW7sgpsoIPHa3tAJE7/Yw+XoLYB8ubaRh/QDdgubKXDCh+UMoqnopG CRE7HmVZUj59SaoaX9FYG54G/9qYw9aOnP2iQLCdBrfL8wvEmSEUgRdfI5UDN2zGfWhr 1zHodARNQVuxpvkO2Nd7x+jTAjZePGDC9+oRKhTAvJrCwsa2Iuo9h2hDuhQlr8uc/Z8B 8sWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si16300719pgn.467.2019.09.03.20.05.52; Tue, 03 Sep 2019 20:06:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728044AbfIDDE2 (ORCPT + 99 others); Tue, 3 Sep 2019 23:04:28 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:33082 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726770AbfIDDE2 (ORCPT ); Tue, 3 Sep 2019 23:04:28 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 917C6A5EED8200FBE134; Wed, 4 Sep 2019 11:04:26 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 11:04:15 +0800 From: zhong jiang To: , , , , CC: , , , Subject: [PATCH 3/3] Staging: rtl8723bs: Use kzfree rather than its implementation Date: Wed, 4 Sep 2019 11:01:19 +0800 Message-ID: <1567566079-7412-4-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1567566079-7412-1-git-send-email-zhongjiang@huawei.com> References: <1567566079-7412-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Use kzfree instead of memset() + kfree(). Signed-off-by: zhong jiang --- drivers/staging/rtl8723bs/core/rtw_security.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c index 979056c..57cfe06 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); } -- 1.7.12.4