mac80211: use kfree_skb() instead of kfree()
Subsystems (2)
PATCH 1/1 mac80211: use kfree_skb() instead of kfree()
sk_buff structs should be freed using kfree_skb().
This was introduced recently in 029458212 "mac80211: Save probe response data for bss".
Signed-off-by Dan Carpenter <[email protected]>
net/mac80211/iface.c +1 -1
@@ -474,7 +474,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,RCU_INIT_POINTER (sdata->u.ap.probe_resp,NULL );synchronize_rcu ();kfree (old_beacon); -kfree (old_probe_resp); +kfree_skb (old_probe_resp);/* down all dependent devices, that is VLANs */ list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans,
Quoted 5 lines · Dan Carpenter
sk_buffstructs should be freed usingkfree_skb().This was introduced recently in 029458212 "mac80211: Save probe response data for bss".
Thanks for this one. I'm getting careless lately.. :)
Arik