summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-06-05 02:25:47 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-05 11:16:08 -0700
commitb2275d444561c18cdb678f9f9f72a2080d91a4c6 (patch)
tree376bd0edfcc019264ee5841f6faa7e0c220dc77a /drivers/net
parente1b8e9499b5cfcddd229a400084a211efead9239 (diff)
downloadkernel-crypto-b2275d444561c18cdb678f9f9f72a2080d91a4c6.tar.gz
kernel-crypto-b2275d444561c18cdb678f9f9f72a2080d91a4c6.tar.xz
kernel-crypto-b2275d444561c18cdb678f9f9f72a2080d91a4c6.zip
wl1251: fix a memory leak in probe
commit aa679c36756003f1fabdb9fc6f00eb159559f7c3 upstream. wl1251_sdio_probe() error path is missing wl1251_free_hw, add it. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Acked-by: Kalle Valo <kvalo@adurom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_sdio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_sdio.c b/drivers/net/wireless/wl12xx/wl1251_sdio.c
index 9423f22bdce..d74b89bbda8 100644
--- a/drivers/net/wireless/wl12xx/wl1251_sdio.c
+++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c
@@ -160,6 +160,7 @@ disable:
sdio_disable_func(func);
release:
sdio_release_host(func);
+ wl1251_free_hw(wl);
return ret;
}