Skip to content

Commit

Permalink
mac80211: use kfree_skb() instead of kfree()
Browse files Browse the repository at this point in the history
sk_buff structs should be freed using kfree_skb().

This was introduced recently in 0294582 "mac80211: Save probe
response data for bss".

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Dan Carpenter authored and linvjw committed Nov 17, 2011
1 parent a5f69d9 commit 5e2e05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e2e05d

Please sign in to comment.