[patch 127/164] wl1251: fix a memory leak in probe

Previous thread: [patch 129/164] ext4: Make sure the MOVE_EXT ioctl cant overwrite append-only files by Greg KH on Thursday, July 1, 2010 - 10:35 am. (1 message)

Next thread: [patch 124/164] iwlwifi: recalculate average tpt if not current by Greg KH on Thursday, July 1, 2010 - 10:35 am. (1 message)
From: Greg KH
Date: Thursday, July 1, 2010 - 10:35 am

2.6.33-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Grazvydas Ignotas <notasas@gmail.com>

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>

---
 drivers/net/wireless/wl12xx/wl1251_sdio.c |    1 +
 1 file changed, 1 insertion(+)

--- 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;
 }
 


--

Previous thread: [patch 129/164] ext4: Make sure the MOVE_EXT ioctl cant overwrite append-only files by Greg KH on Thursday, July 1, 2010 - 10:35 am. (1 message)

Next thread: [patch 124/164] iwlwifi: recalculate average tpt if not current by Greg KH on Thursday, July 1, 2010 - 10:35 am. (1 message)