From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E9A8C3A5A7 for ; Wed, 4 Sep 2019 15:21:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 135BD21883 for ; Wed, 4 Sep 2019 15:21:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731245AbfIDPVK (ORCPT ); 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 > > . >