summaryrefslogtreecommitdiffstats
path: root/drivers/ieee802154
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-11-19 01:28:10 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-19 13:16:21 -0800
commit56cf54831fd1be105e89a9df899e3b22442da180 (patch)
tree3e1ec732a0e26b5eba977750fdd50a52f1dc1fb4 /drivers/ieee802154
parent66b00a7c93ec782d118d2c03bd599cfd041e80a1 (diff)
downloadlinux-stable-56cf54831fd1be105e89a9df899e3b22442da180.tar.gz
linux-stable-56cf54831fd1be105e89a9df899e3b22442da180.tar.bz2
linux-stable-56cf54831fd1be105e89a9df899e3b22442da180.zip
ieee802154: dont leak skbs in ieee802154_fake_xmit()
ieee802154_fake_xmit() should free skbs since it returns NETDEV_TX_OK Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ieee802154')
-rw-r--r--drivers/ieee802154/fakehard.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ieee802154/fakehard.c b/drivers/ieee802154/fakehard.c
index 96a2959ce877..7c544f7c74c4 100644
--- a/drivers/ieee802154/fakehard.c
+++ b/drivers/ieee802154/fakehard.c
@@ -260,15 +260,12 @@ static int ieee802154_fake_close(struct net_device *dev)
static netdev_tx_t ieee802154_fake_xmit(struct sk_buff *skb,
struct net_device *dev)
{
- skb->iif = dev->ifindex;
- skb->dev = dev;
dev->stats.tx_packets++;
dev->stats.tx_bytes += skb->len;
- dev->trans_start = jiffies;
-
/* FIXME: do hardware work here ... */
+ dev_kfree_skb(skb);
return NETDEV_TX_OK;
}