Skip to content

Commit

Permalink
mac80211: fix memory leak in ieee80211_send_probe_req
Browse files Browse the repository at this point in the history
This patch fixes memory leak in ieee80211_send_probe_req, which
is introduced in 7c12ce8:

	mac80211: use Probe Request template when sending a direct scan

The patch is against the latest wireless-test tree.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ming Lei authored and John W. Linville committed Jan 15, 2010
1 parent 43d3534 commit 145b6d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst,

IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
ieee80211_tx_skb(sdata, skb);
kfree(buf);
}

u32 ieee80211_sta_get_rates(struct ieee80211_local *local,
Expand Down

0 comments on commit 145b6d1

Please sign in to comment.