summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-06-05 02:25:47 +0300
committerJohn W. Linville <linville@tuxdriver.com>2010-06-07 14:42:51 -0400
commitaa679c36756003f1fabdb9fc6f00eb159559f7c3 (patch)
treea59541ac3983582e50b4f9e4fdca49a4177754cd /drivers/net
parent7d47618a2ade0cb6d8a0b2597029c383c1662fa0 (diff)
downloadlinux-3.10-aa679c36756003f1fabdb9fc6f00eb159559f7c3.tar.gz
linux-3.10-aa679c36756003f1fabdb9fc6f00eb159559f7c3.tar.bz2
linux-3.10-aa679c36756003f1fabdb9fc6f00eb159559f7c3.zip
wl1251: fix a memory leak in probe
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> Cc: stable@kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 d234285c2c8..c561332e700 100644
--- a/drivers/net/wireless/wl12xx/wl1251_sdio.c
+++ b/drivers/net/wireless/wl12xx/wl1251_sdio.c
@@ -259,6 +259,7 @@ disable:
sdio_disable_func(func);
release:
sdio_release_host(func);
+ wl1251_free_hw(wl);
return ret;
}