diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-11-19 02:28:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-19 22:16:21 +0100 |
commit | 56cf54831fd1be105e89a9df899e3b22442da180 (patch) | |
tree | 3e1ec732a0e26b5eba977750fdd50a52f1dc1fb4 /drivers | |
parent | Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/c... (diff) | |
download | linux-56cf54831fd1be105e89a9df899e3b22442da180.tar.xz linux-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')
-rw-r--r-- | drivers/ieee802154/fakehard.c | 5 |
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; } |