projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53385d2
)
xen-netback: fix fragments error handling in checksum_setup_ip()
author
Wei Yongjun
<
[email protected]
>
Mon, 16 Dec 2013 02:45:05 +0000
(10:45 +0800)
committer
David S. Miller
<
[email protected]
>
Tue, 17 Dec 2013 21:18:18 +0000
(16:18 -0500)
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 <
[email protected]
>
Reviewed-by: Paul Durrant <
[email protected]
>
Acked-by: Ian Campbell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/xen-netback/netback.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netback/netback.c
b/drivers/net/xen-netback/netback.c
index e884ee1fe7edf7e3fa41dd9998eb00be8ecc6d08..27bbe58dcbe7bf424fdfd54a461af847836836eb 100644
(file)
--- a/
drivers/net/xen-netback/netback.c
+++ b/
drivers/net/xen-netback/netback.c
@@
-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,