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=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 D6F84C4320E for ; Mon, 30 Aug 2021 11:50:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B93D061153 for ; Mon, 30 Aug 2021 11:50:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236597AbhH3LvA (ORCPT ); Mon, 30 Aug 2021 07:51:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:40460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236511AbhH3Lu7 (ORCPT ); Mon, 30 Aug 2021 07:50:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 04AD361153; Mon, 30 Aug 2021 11:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630324206; bh=HpVmdF4QAkhZw1bOkEIQFkTWCDXDdp6WRvOPJGIpkOA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Mg5VyRXRU6bHEy2Mygz2sUpVsPvrxoBNDEhDjODcROyOVo23d54NmbyjbGPU3ER91 4aY9Xd3nxHaxo+5Qco8fub3Lc9f/i0ZsE+cOBwTeGdhmKJv0NhzB0Zn2hugvVehan9 DuMrOiDBZBJqQSlv0koqE7rt3qdELfFfZPejMND0b9qwAhqvPL8bxTTvFP5o3W8Zp9 ofve2hix4VVDTUTm/gpSGBgYlCrcjXMfXt+BLDlCIcAMvkRxpF4BtiZMwL7t/XaLGO bzYDPYf+YLH4eBIKO9RTaiKTct6o558T9JZlwbXJTkAH3Xh04+uziBH0B6tf087tid XtQEZ5pxW+veA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net: ipv4: Fix the warning for dereference From: patchwork-bot+netdevbpf@kernel.org Message-Id: <163032420595.13141.14066934004693192877.git-patchwork-notify@kernel.org> Date: Mon, 30 Aug 2021 11:50:05 +0000 References: <20210830091640.14739-1-yajun.deng@linux.dev> In-Reply-To: <20210830091640.14739-1-yajun.deng@linux.dev> To: Yajun Deng Cc: davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 30 Aug 2021 17:16:40 +0800 you wrote: > Add a if statements to avoid the warning. > > Dan Carpenter report: > The patch faf482ca196a: "net: ipv4: Move ip_options_fragment() out of > loop" from Aug 23, 2021, leads to the following Smatch complaint: > > net/ipv4/ip_output.c:833 ip_do_fragment() > warn: variable dereferenced before check 'iter.frag' (see line 828) > > [...] Here is the summary with links: - [net-next] net: ipv4: Fix the warning for dereference https://git.kernel.org/netdev/net-next/c/1b9fbe813016 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html