mac80211: use kfree_skb() to free struct sk_buff pointers

kfree_skb() should be used to free struct sk_buff pointers.

Signed-off-by: Roel Kluin <[email protected]>
Acked-by: Johannes Berg <[email protected]>
Cc: [email protected]
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Roel Kluin 2009-10-06 15:52:35 +02:00 • committed by John W. Linville
commit 0819663d16

View file

@ -339,7 +339,7 @@ void ieee80211_add_pending_skb(struct ieee80211_local *local,
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
if (WARN_ON(!info->control.vif)) {
kfree(skb);
kfree_skb(skb);
return;
}
@ -367,7 +367,7 @@ int ieee80211_add_pending_skbs(struct ieee80211_local *local,
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
if (WARN_ON(!info->control.vif)) {
kfree(skb);
kfree_skb(skb);
continue;
}