summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_cmd.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-03-26 11:53:14 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 20:39:12 +0200
commit9cea461fb0a37dae9ef0a83714c5fcdc4b2074c8 (patch)
treeed73acccef1bc8b8f3083516231e28fdbeb40be8 /drivers/net/wireless/wl12xx/wl1271_cmd.c
parentwl1271: Fix memory leaks in SPI initialization (diff)
downloadlinux-9cea461fb0a37dae9ef0a83714c5fcdc4b2074c8.tar.xz
linux-9cea461fb0a37dae9ef0a83714c5fcdc4b2074c8.zip
wl1271: Fix memory leak in scan command handling
This patch fixes a memory leak in the scan command handling code. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c
index d005729e0312..dbed0606771f 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -665,6 +665,7 @@ int wl1271_cmd_scan(struct wl1271 *wl, const u8 *ssid, size_t ssid_len,
out:
kfree(params);
+ kfree(trigger);
return ret;
}