Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7022ef8b authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

xen-netback: fix fragments error handling in checksum_setup_ip()



Fix to return -EPROTO error if fragments detected in checksum_setup_ip().

Fixes: 1431fb31 ('xen-netback: fix fragment detection in checksum setup')
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarPaul Durrant <paul.durrant@citrix.com>
Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 53385d2d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1197,6 +1197,9 @@ static int checksum_setup_ip(struct xenvif *vif, struct sk_buff *skb,

	err = -EPROTO;

	if (fragment)
		goto out;

	switch (ip_hdr(skb)->protocol) {
	case IPPROTO_TCP:
		err = maybe_pull_tail(skb,