Wei Yongjun
2013-Dec-16 02:45 UTC
[PATCH -next] xen-netback: fix fragments error handling in checksum_setup_ip()
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Fix to return -EPROTO error if fragments detected in checksum_setup_ip(). Fixes: 1431fb31ecba (''xen-netback: fix fragment detection in checksum setup'') Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> --- drivers/net/xen-netback/netback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 800496b..773b731 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -1099,6 +1099,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,