Commit 0819663d authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville

mac80211: use kfree_skb() to free struct sk_buff pointers

kfree_skb() should be used to free struct sk_buff pointers.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9e7ba246
...@@ -339,7 +339,7 @@ void ieee80211_add_pending_skb(struct ieee80211_local *local, ...@@ -339,7 +339,7 @@ void ieee80211_add_pending_skb(struct ieee80211_local *local,
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
if (WARN_ON(!info->control.vif)) { if (WARN_ON(!info->control.vif)) {
kfree(skb); kfree_skb(skb);
return; return;
} }
...@@ -367,7 +367,7 @@ int ieee80211_add_pending_skbs(struct ieee80211_local *local, ...@@ -367,7 +367,7 @@ int ieee80211_add_pending_skbs(struct ieee80211_local *local,
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
if (WARN_ON(!info->control.vif)) { if (WARN_ON(!info->control.vif)) {
kfree(skb); kfree_skb(skb);
continue; continue;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment