[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120201.025310.1777485011852016937.davem@davemloft.net>
Date: Wed, 01 Feb 2012 02:53:10 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: steffen.klassert@...unet.com, kuznet@....inr.ac.ru,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...sh.net,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch] xfrm6: remove unneeded NULL check in __xfrm6_output()
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Wed, 1 Feb 2012 10:45:26 +0300
> We don't check for NULL consistently in __xfrm6_output(). If "x" were
> NULL here it would lead to an OOPs later. I asked Steffen Klassert
> about this and he suggested that we remove the NULL check.
>
> On 10/29/11, Steffen Klassert <steffen.klassert@...unet.com> wrote:
>>> net/ipv6/xfrm6_output.c
>>> 148
>>> 149 if ((x && x->props.mode == XFRM_MODE_TUNNEL) &&
>>> ^
>>
>> x can't be null here. It would be a bug if __xfrm6_output() is called
>> without a xfrm_state attached to the skb. I think we can just remove
>> this null check.
>
> Cc: Steffen Klassert <steffen.klassert@...unet.com>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied, thanks Dan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists