Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp152087ybe; Tue, 3 Sep 2019 19:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUqIKMz9vzRLKl7BL8ei4A8plsPFUHdXE0Rikbc03ENvFnq2FhOidkkJOE3whVjQ6C+l8g X-Received: by 2002:a63:d301:: with SMTP id b1mr32626851pgg.379.1567565002476; Tue, 03 Sep 2019 19:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567565002; cv=none; d=google.com; s=arc-20160816; b=Vhp98I13uWm7/gj+wor3IQ8VKc0Lu9VnW1RuKfwYdD+eUtEf9Oij0/x2Jeb/fX8HUm sYrRtbuGVaxA3LSHRYf9NCcZkjvptoaAzEP24B2y4Z3nCC8XibEqQC1wRn9Tbbk1Nx+y Ieiiqf4wq54rJInlx0hy/RyV4gOZUVfOyEQ3IIVPiipCdyLIkXBJkjhJfs2gnDYOqiLY 6M1d2eiGCvIfxxnojGTVjnUIiRUKgUFHZemMC45E+Hbd5DzG4xYLW+pCgCnRAZ8uZhAb FsNVYBOiispxnXT/CcixymMyywN88ddT0lcRBQ8ULt2dE5jNex+MTKIy8IFUQTZwg007 MmUA== 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=f5rZ9OsararuQMSe+lIUQ3/OycXMhMWeF04cWK0JjoM=; b=1CChgGLhBDEFPIfmddp9nLXmqwmGnNGmkz6wyk0SDO/6B/91hoWvFT8Z/HHRXvEh8f FXwPWwdZf3MzPoKOrHx/EfpAmJQdbYFDBfJ5zD4Wa9+RZDVhxpdjaushYjaFkiL28cD1 J6eyBn4SZoiGjYwedVErW2HU2gcHDS+9J8vr5HhnF/7CZC5qhdtgATD3vhlyC5lvwg4F WXfaQ67UNy8r5UGFUdFuDQ7ybZbjbXI2J83Q5doxzC7ro4D2QhiuE/M3aUXk3ZM1pY3g +7igOjA/Wnu0RPkDXQH2DayT2NHJwPkYTCniZzG9CjcncBJ3ndEJDb9/0O7S6obLeyI+ mXUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 b126si19304819pfb.89.2019.09.03.19.43.06; Tue, 03 Sep 2019 19:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728108AbfIDCmR (ORCPT + 99 others); Tue, 3 Sep 2019 22:42:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5745 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726770AbfIDCmQ (ORCPT ); Tue, 3 Sep 2019 22:42:16 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EDCC07904D833413A145; Wed, 4 Sep 2019 10:42:14 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 10:42:06 +0800 From: zhong jiang To: , , CC: , , Subject: [PATCH 0/3] net: Use kzfree() directly Date: Wed, 4 Sep 2019 10:39:09 +0800 Message-ID: <1567564752-6430-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the help of Coccinelle. We find some place to replace. @@ expression M, S; @@ - memset(M, 0, S); - kfree(M); + kzfree(M); zhong jiang (3): ixgbe: Use kzfree() rather than its implementation. sunrpc: Use kzfree rather than its implementation. net: mpoa: Use kzfree rather than its implementation. drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 9 +++------ net/atm/mpoa_caches.c | 6 ++---- net/sunrpc/auth_gss/gss_krb5_keys.c | 9 +++------ 3 files changed, 8 insertions(+), 16 deletions(-) -- 1.7.12.4