wl1251: fix a memory leak in probe
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 4 Jun 2010 23:25:47 +0000 (02:25 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jun 2010 18:42:51 +0000 (14:42 -0400)
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>
drivers/net/wireless/wl12xx/wl1251_sdio.c

index d234285..c561332 100644 (file)
@@ -259,6 +259,7 @@ disable:
        sdio_disable_func(func);
 release:
        sdio_release_host(func);
+       wl1251_free_hw(wl);
        return ret;
 }