[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6365c171-5550-4640-92bc-0151a4de61a1@redhat.com>
Date: Wed, 19 Mar 2025 18:38:49 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Dan Carpenter <dan.carpenter@...aro.org>,
Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Simon Horman <horms@...nel.org>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] xfrm: Remove unnecessary NULL check in
xfrm_lookup_with_ifid()
On 3/12/25 6:21 PM, Dan Carpenter wrote:
> This NULL check is unnecessary and can be removed. It confuses
> Smatch static analysis tool because it makes Smatch think that
> xfrm_lookup_with_ifid() can return a mix of NULL pointers and errors so
> it creates a lot of false positives. Remove it.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
> ---
> I have wanted to remove this NULL check for a long time. Someone
> said it could be done safely. But please, please, review this
> carefully.
I think it's better if this patch goes first into the ipsec/xfrm tree,
so that hopefully it gets some serious testing before landing into net-next.
@Steffen, @Herber: could you please take this in your tree?
Thanks,
Paolo
Powered by blists - more mailing lists