Skip to content

Commit

Permalink
mac802154: use kfree_skb() instead of dev_kfree_skb()
Browse files Browse the repository at this point in the history
kfree_skb() indicates failure, which is where this is being used.

Signed-off-by: Alan Ott <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
signal11 authored and davem330 committed Nov 30, 2012
1 parent fcefbe9 commit 92a2ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac802154/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 92a2ec7

Please sign in to comment.