Commit 0819663d164e090de315c5e619f4e23c27aaff88

Authored by Roel Kluin
Committed by John W. Linville
1 parent 9e7ba2465f

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 <roel.kluin@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -339,7 +339,7 @@
339 339 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
340 340  
341 341 if (WARN_ON(!info->control.vif)) {
342   - kfree(skb);
  342 + kfree_skb(skb);
343 343 return;
344 344 }
345 345  
... ... @@ -367,7 +367,7 @@
367 367 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
368 368  
369 369 if (WARN_ON(!info->control.vif)) {
370   - kfree(skb);
  370 + kfree_skb(skb);
371 371 continue;
372 372 }
373 373