summaryrefslogtreecommitdiff
path: root/net/ieee802154/af_ieee802154.c
diff options
context:
space:
mode:
authorAlexander Smirnov <alex.bluesman.smirnov@gmail.com>2011-06-29 16:51:37 +0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-06-30 16:18:09 +0400
commitfa1da8835b0764a77a72dea8861bdb1b8c4c59d2 (patch)
tree5fb6ac52fa60b1982db116568528e61e0c167d55 /net/ieee802154/af_ieee802154.c
parent5fd72607a4e9a4a7147d670526431944976035b8 (diff)
downloadlinux-fa1da8835b0764a77a72dea8861bdb1b8c4c59d2.tar.xz
ieee802154: free skb buffer if dev isn't running
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'net/ieee802154/af_ieee802154.c')
-rw-r--r--net/ieee802154/af_ieee802154.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c
index 6df6ecf49708..40e606f3788f 100644
--- a/net/ieee802154/af_ieee802154.c
+++ b/net/ieee802154/af_ieee802154.c
@@ -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);