summaryrefslogtreecommitdiffstats
path: root/net/mac802154/tx.c
diff options
context:
space:
mode:
authorAlan Ott <alan@signal11.us>2012-11-29 19:25:11 +0100
committerDavid S. Miller <davem@davemloft.net>2012-11-30 18:19:24 +0100
commit92a2ec72a7dbb84f4b614c9b72880d86db69475f (patch)
treea86002a08cd1414b4d66ff6a5b77231db6bb43c5 /net/mac802154/tx.c
parentmac802154: fix memory leaks (diff)
downloadlinux-92a2ec72a7dbb84f4b614c9b72880d86db69475f.tar.xz
linux-92a2ec72a7dbb84f4b614c9b72880d86db69475f.zip
mac802154: use kfree_skb() instead of dev_kfree_skb()
kfree_skb() indicates failure, which is where this is being used. Signed-off-by: Alan Ott <alan@signal11.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154/tx.c')
-rw-r--r--net/mac802154/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index db639140afc6..4e09d070995a 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -99,7 +99,7 @@ netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb,
}
if (skb_cow_head(skb, priv->hw.extra_tx_headroom)) {
- dev_kfree_skb(skb);
+ kfree_skb(skb);
return NETDEV_TX_OK;
}