Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 145b6d1a authored by Ming Lei's avatar Ming Lei Committed by John W. Linville
Browse files

mac80211: fix memory leak in ieee80211_send_probe_req



This patch fixes memory leak in ieee80211_send_probe_req, which
is introduced in 7c12ce8b:

	mac80211: use Probe Request template when sending a direct scan

The patch is against the latest wireless-test tree.

Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Reviewed-by: default avatarKalle Valo <kalle.valo@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 43d35343
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,