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:
26a41ae
)
vxlan: handle skb_clone failure
author
stephen hemminger
<
[email protected]
>
Mon, 17 Jun 2013 19:09:59 +0000
(12:09 -0700)
committer
David S. Miller
<
[email protected]
>
Mon, 17 Jun 2013 22:55:47 +0000
(15:55 -0700)
If skb_clone fails if out of memory then just skip the fanout.
Problem was introduced in 3.10 with:
commit
6681712d67eef14c4ce793561c3231659153a320
Author: David Stevens <
[email protected]
>
Date: Fri Mar 15 04:35:51 2013 +0000
vxlan: generalize forwarding tables
Signed-off-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/vxlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/vxlan.c
b/drivers/net/vxlan.c
index 15a73ec42c64ee14b537e8c5b0c573b8de03d015..dda997a0102c39175be955077f64a79461c3cfbb 100644
(file)
--- a/
drivers/net/vxlan.c
+++ b/
drivers/net/vxlan.c
@@
-1161,9
+1161,11
@@
static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
struct sk_buff *skb1;
skb1 = skb_clone(skb, GFP_ATOMIC);
- rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
- if (rc == NETDEV_TX_OK)
- rc = rc1;
+ if (skb1) {
+ rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
+ if (rc == NETDEV_TX_OK)
+ rc = rc1;
+ }
}
rc1 = vxlan_xmit_one(skb, dev, rdst0, did_rsc);