Skip to content

Commit

Permalink
ieee802154: free skb buffer if dev isn't running
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  • Loading branch information
Alexander Smirnov authored and Dmitry Eremin-Solenikov committed Jun 30, 2011
1 parent 5fd7260 commit fa1da88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/af_ieee802154.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int ieee802154_rcv(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt, struct net_device *orig_dev)
{
if (!netif_running(dev))
return -ENODEV;
goto drop;
pr_debug("got frame, type %d, dev %p\n", dev->type, dev);
#ifdef DEBUG
print_hex_dump_bytes("ieee802154_rcv ", DUMP_PREFIX_NONE, skb->data, skb->len);
Expand Down

0 comments on commit fa1da88

Please sign in to comment.