mac80211: use kfree_skb() instead of kfree()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Nov 2011 06:33:09 +0000 (09:33 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 17 Nov 2011 20:43:57 +0000 (15:43 -0500)
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 <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c

index 12a6d4bb5d3736b348996bac224b43d5651873a1..b34ca0cbdf6cef9c06f013f010abe3087c700e00 100644 (file)
@@ -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,