]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mac80211: fix memory leak in ieee80211_send_probe_req
authorMing Lei <tom.leiming@gmail.com>
Fri, 15 Jan 2010 13:44:21 +0000 (21:44 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jan 2010 22:02:08 +0000 (17:02 -0500)
This patch fixes memory leak in ieee80211_send_probe_req, which
is introduced in 7c12ce8b854df346388ea56d684784e3484012cf:

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>
net/mac80211/util.c

index e278f97c830528afd9e2ffed5f5b3814a4441fca..ca170b417da670ed5d900accfed5d81a09e94588 100644 (file)
@@ -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,