Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327764
b: refs/heads/master
c: a437d27
h: refs/heads/master
v: v3
  • Loading branch information
Alan Ott authored and David S. Miller committed Sep 2, 2012
1 parent bcdbb10 commit f743a2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1bed966cc3bd4042110129f0fc51aeeb59c5b200
refs/heads/master: a437d2744b0a4e5f405f6b9be284eb9e0a2d7741
9 changes: 8 additions & 1 deletion trunk/net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,8 @@ static int lowpan_validate(struct nlattr *tb[], struct nlattr *data[])
static int lowpan_rcv(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt, struct net_device *orig_dev)
{
struct sk_buff *local_skb;

if (!netif_running(dev))
goto drop;

Expand All @@ -1144,7 +1146,12 @@ static int lowpan_rcv(struct sk_buff *skb, struct net_device *dev,
case LOWPAN_DISPATCH_IPHC: /* ipv6 datagram */
case LOWPAN_DISPATCH_FRAG1: /* first fragment header */
case LOWPAN_DISPATCH_FRAGN: /* next fragments headers */
lowpan_process_data(skb);
local_skb = skb_clone(skb, GFP_ATOMIC);
if (!local_skb)
goto drop;
lowpan_process_data(local_skb);

kfree_skb(skb);
break;
default:
break;
Expand Down

0 comments on commit f743a2e

Please sign in to comment.