Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp831198ybe; Wed, 4 Sep 2019 08:22:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr2KYm//+m/J/6fi2zWXnhpCaiUZQaBPGauXwYbHWb8/ND75MLuCLKfX0jotR7xEUE6NoV X-Received: by 2002:a17:90a:fe01:: with SMTP id ck1mr5516393pjb.89.1567610537467; Wed, 04 Sep 2019 08:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567610537; cv=none; d=google.com; s=arc-20160816; b=y39ryFWaGPk5/L1dI9+C1g00ZpOTiN4YBSgsHcS9yRpPe7Fda71tFbyjHx0km7GXyT K/rXgnzoG5rOmXr0moCT/KhXutZ17bt1Io/QPSChiR2Q3iBqJy1D/idRqXHk8vpBF8Ae NwEUGKv7B2UYIKN09vlKXivo1W4EVKLsD9YScWZL1ycp7rGE+CuB4+1HMhp0V9I0IWQl krQVJyv4yLLZn3mJwXet0+UBWk5YIw0VrCncHaIqEGXMe/CZR7CnooIZyjdgP8BKgQ8M xBvMgrVG0UVUDfmY9El1lHfvmfPx9Ut7Wt/UJjFXyoBg4fiPWyum9oGhfVOCT2DHOkck XPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=MtmJa4Yz7BR4ZXg3HPXm/Aq43IFOegGUSTEOODmTz20=; b=Ohx/xw6lePu+hrbN0DtTd8a2jO07YGkPjWkM97ecfafxFbL5Zs5t3s43xtuA2i7skn HiJBwqK2I7vYy+n5mMw7m0mQMQPiB2cX68VpuNvQ321Gue1WLRCpVF4l/rZKL8tK55Cx GKtvp0jzQLwE5HA0eGm8el2Et4iSh0j2CgzvFL3EXmptZSz+E6gEl/knb5kLcRVV3EU1 MjIh4FmNepu48XzrdXZ9Iu0ZdJcJ5waZWJQVsdf+V/0L5AhqZALY2MowZg+QiM4UxcAm VDL2zkgX8Krji5o/cY6xarJZwrJfHZ+xwIGgbUvp3g0ykmwG4swQWvCPR5eHCMusrTaS p7FQ== 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 b126si20845076pfb.89.2019.09.04.08.22.00; Wed, 04 Sep 2019 08:22:17 -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 S1731251AbfIDPVK (ORCPT + 99 others); Wed, 4 Sep 2019 11:21:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6211 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730299AbfIDPVJ (ORCPT ); Wed, 4 Sep 2019 11:21:09 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 04C9C3C913037ED1DE6B; Wed, 4 Sep 2019 23:21:07 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 23:21:02 +0800 Message-ID: <5D6FD65D.1060507@huawei.com> Date: Wed, 4 Sep 2019 23:21:01 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Markus Elfring CC: Arvid Brodin , "David S. Miller" , , , Subject: Re: net: hsr: remove a redundant null check before kfree_skb References: <1567566558-7764-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/4 19:55, Markus Elfring wrote: >> kfree_skb has taken the null pointer into account. > I suggest to take another look also at information around > a similar update suggestion. > > net-hsr: Delete unnecessary checks before the function call "kfree_skb" > https://lkml.org/lkml/2015/11/14/120 > https://lore.kernel.org/patchwork/patch/617878/ > https://lore.kernel.org/r/5647A77E.6040501@users.sourceforge.net/ > > https://lkml.org/lkml/2015/11/24/433 > https://lore.kernel.org/r/56546951.9080101@alten.se/ Thanks you for explaination. I miss the similar patch before sending it. Sincerely, zhong jiang > Regards, > Markus > > . >