Re: [PATCH ipsec-next] xfrm: fix bogus WARN_ON with ipv6

2019-06-17 Thread Steffen Klassert
On Wed, Jun 12, 2019 at 10:30:58AM +0200, Florian Westphal wrote: > net/xfrm/xfrm_input.c:378:17: warning: this statement may fall through > [-Wimplicit-fallthrough=] > skb->protocol = htons(ETH_P_IPV6); > > ... the fallthrough then causes a bogus WARN_ON(). > > Reported-by: Stephen Rothwell >

[PATCH ipsec-next] xfrm: fix bogus WARN_ON with ipv6

2019-06-12 Thread Florian Westphal
net/xfrm/xfrm_input.c:378:17: warning: this statement may fall through [-Wimplicit-fallthrough=] skb->protocol = htons(ETH_P_IPV6); ... the fallthrough then causes a bogus WARN_ON(). Reported-by: Stephen Rothwell Fixes: 4c203b0454b ("xfrm: remove eth_proto value from xfrm_state_afinfo") Signed-