]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
wl1251: fix a memory leak in probe
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 4 Jun 2010 23:25:47 +0000 (02:25 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:16:08 +0000 (11:16 -0700)
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

index 9423f22bdcedcda262bde981d9b8da6698412179..d74b89bbda83390d05b5529ab451b34ed05f30cc 100644 (file)
@@ -160,6 +160,7 @@ disable:
        sdio_disable_func(func);
 release:
        sdio_release_host(func);
+       wl1251_free_hw(wl);
        return ret;
 }