diff options
| author | Dan Carpenter <[email protected]> | 2012-01-31 21:45:26 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-02-01 07:52:48 +0000 |
| commit | 5b11b2e4bdef20e839d90dce96c5bbeafaf9616c (patch) | |
| tree | 8dfac0cc9ff403c906993a3d0d493575a50aa297 /net/ipv6/tcp_ipv6.c | |
| parent | tcp: md5: protects md5sig_info with RCU (diff) | |
| download | kernel-5b11b2e4bdef20e839d90dce96c5bbeafaf9616c.tar.gz kernel-5b11b2e4bdef20e839d90dce96c5bbeafaf9616c.zip | |
xfrm6: remove unneeded NULL check in __xfrm6_output()
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 <[email protected]> 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 <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
