diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-15 01:33:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-17 15:43:57 -0500 |
commit | 5e2e05de55ce1dd05521c419b80241551d36b473 (patch) | |
tree | da44b985485f7b49958a4917882ccefcfe24b4a7 /net/mac80211/iface.c | |
parent | a5f69d94d8e239b48299abdd836840b7447866ab (diff) |
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 <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 12a6d4bb5d37..b34ca0cbdf6c 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -474,7 +474,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, | |||
474 | RCU_INIT_POINTER(sdata->u.ap.probe_resp, NULL); | 474 | RCU_INIT_POINTER(sdata->u.ap.probe_resp, NULL); |
475 | synchronize_rcu(); | 475 | synchronize_rcu(); |
476 | kfree(old_beacon); | 476 | kfree(old_beacon); |
477 | kfree(old_probe_resp); | 477 | kfree_skb(old_probe_resp); |
478 | 478 | ||
479 | /* down all dependent devices, that is VLANs */ | 479 | /* down all dependent devices, that is VLANs */ |
480 | list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, | 480 | list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, |