Re: [PATCH net-next v2] net/ipv6: silence 'passing zero to ERR_PTR()' warning

From: David Ahern
Date: Thu Apr 13 2023 - 20:32:31 EST


On 4/13/23 4:10 AM, Haoyi Liu wrote:
> Smatch complains that if xfrm_lookup() returns NULL then this does a
> weird thing with "err":

xfrm_lookup is a wrapper around xfrm_lookup_with_ifid which returns
either either a valid dst or ERR_PTR(err).