Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp167516ybe; Tue, 3 Sep 2019 20:05:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTzTn0Z6FFjGrK2cFCJg0xb2kwL1PNromCrfJPqL+WYNO2jDjEi6e8pEVcOWlc6Nal3bVU X-Received: by 2002:a65:5342:: with SMTP id w2mr32815102pgr.261.1567566345026; Tue, 03 Sep 2019 20:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567566345; cv=none; d=google.com; s=arc-20160816; b=dpNJSLSGDLxE/OMwOvsVNqfuhozHviL/P26NSVzMC4TPKS+/WHD0IiqbTG7sP+91am LpVpD5SHu+3C5Fxq22NaOIoV0Di+93lgztwz+FKkWMIXDty2WLaEypBeAOA71WufDJ2U w1WzDBMHheaWtu/7tkQDyXMkEd2yAbPpW7X/SQvN1SVISAzOSlE9dQMhGWwvaZt67HFI LbwaX5Eqb8/cEjIybbW8v26yEN/zXvfNGE+raPmfDRIez4Msarhu/a38BiOt/c9tdGUg omTRSojIbu+yV1FXtIpbEe3+C57Fj1XA3muWfIJEN31miLz974zRbzbM3irGgktuKbuI bJaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=mA3KsHrBz+o2c52WdUxbBfOyNRPy5Qe4pGumzotHjow=; b=QxE+cJ1m14D/t3n4OnYDu4zf8cUpzw3ONXNuNSEuHR4nJrqKOlyND/CLNKJuhdKiGr weSxAQkcwpfgYXN3ncRLvTcqVbMgBzKPM3edAIaRuuo0b6ALN9D2l/Om3MHPVGzxViUw mu85vJoey18oXrpHRgQyxX7Khj4DOS7vUq/qLCt+k8Prfttgs01WJNG1pu3+zYcL70if 9J2yGwBYCepyRfKMRcEcQi34RmtyVhVMtNKlPflYobxcTJ95lXgleCYthjV0GFzlvXOD JBBjQBLxeu8NT9ZkVquL6788QsSeYFjcZ0dGJvRh4kkunT38cjoQs7m86eeua6K8uQPn dlew== 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 c14si19326533pfb.252.2019.09.03.20.05.31; Tue, 03 Sep 2019 20:05:45 -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 S1728024AbfIDDEX (ORCPT + 99 others); Tue, 3 Sep 2019 23:04:23 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5748 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726770AbfIDDEX (ORCPT ); Tue, 3 Sep 2019 23:04:23 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 81B97BBBC75515CF42AB; Wed, 4 Sep 2019 11:04:21 +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:13 +0800 From: zhong jiang To: , , , , CC: , , , Subject: [PATCH 0/3] Use kzfree instead of memset() + kfree() Date: Wed, 4 Sep 2019 11:01:16 +0800 Message-ID: <1567566079-7412-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 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 th the help of Coccinelle. We find some place to replace. @@ expression M, S; @@ - memset(M, 0, S); - kfree(M); + kzfree(M); zhong jiang (3): crypto: marvell: Use kzfree rather than its implementation iommu/pamu: Use kzfree rather than its implementation Staging: rtl8723bs: Use kzfree rather than its implementation drivers/crypto/marvell/hash.c | 3 +-- drivers/iommu/fsl_pamu.c | 6 ++---- drivers/staging/rtl8723bs/core/rtw_security.c | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) -- 1.7.12.4