aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ieee802154/6lowpan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 6871ec1b30f8..416a54d31fb2 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -314,6 +314,9 @@ lowpan_uncompress_udp_header(struct sk_buff *skb)
314 struct udphdr *uh = udp_hdr(skb); 314 struct udphdr *uh = udp_hdr(skb);
315 u8 tmp; 315 u8 tmp;
316 316
317 if (!uh)
318 goto err;
319
317 if (lowpan_fetch_skb_u8(skb, &tmp)) 320 if (lowpan_fetch_skb_u8(skb, &tmp))
318 goto err; 321 goto err;
319 322