aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 6baddfbedca3..8a213238f287 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -955,6 +955,8 @@ static int udp_encap_rcv(struct sock * sk, struct sk_buff *skb)
955 * header and optional ESP marker bytes) and then modify the 955 * header and optional ESP marker bytes) and then modify the
956 * protocol to ESP, and then call into the transform receiver. 956 * protocol to ESP, and then call into the transform receiver.
957 */ 957 */
958 if (skb_cloned(skb) && pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
959 return 0;
958 960
959 /* Now we can update and verify the packet length... */ 961 /* Now we can update and verify the packet length... */
960 iph = skb->nh.iph; 962 iph = skb->nh.iph;