diff options
Diffstat (limited to 'drivers/net/bareudp.c')
-rw-r--r-- | drivers/net/bareudp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index 77e72477499d..15337e9d4fad 100644 --- a/drivers/net/bareudp.c +++ b/drivers/net/bareudp.c @@ -320,6 +320,7 @@ static int bareudp_xmit_skb(struct sk_buff *skb, struct net_device *dev, df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; skb_scrub_packet(skb, xnet); + err = -ENOSPC; if (!skb_pull(skb, skb_network_offset(skb))) goto free_dst; @@ -381,6 +382,7 @@ static int bareudp6_xmit_skb(struct sk_buff *skb, struct net_device *dev, skb_scrub_packet(skb, xnet); + err = -ENOSPC; if (!skb_pull(skb, skb_network_offset(skb))) goto free_dst; |