Re: [PATCH] net: exit immediately when encounter ipv6 fragment in skb_checksum_setup_ipv6()

2020-08-27 Thread David Miller
From: Miaohe Lin Date: Thu, 27 Aug 2020 07:21:59 -0400 > skb_checksum_setup_ipv6() always return -EPROTO if ipv6 packet is fragment. > So we should not continue to parse other header type in this case. Also > remove unnecessary local variable 'fragment'. > > Signed-off-by: Miaohe Lin Again,

[PATCH] net: exit immediately when encounter ipv6 fragment in skb_checksum_setup_ipv6()

2020-08-27 Thread Miaohe Lin
skb_checksum_setup_ipv6() always return -EPROTO if ipv6 packet is fragment. So we should not continue to parse other header type in this case. Also remove unnecessary local variable 'fragment'. Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 12 ++-- 1 file changed, 6 insertions(+), 6