]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
wireless: b43: fix error path in SDIO
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 23 Nov 2010 16:10:24 +0000 (17:10 +0100)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:06 +0000 (23:40 +0100)
commit e476a5a41ad67d0e2b4a652820c49a3923eb936b upstream.

Fix unbalanced call to sdio_release_host() on the error path.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/net/wireless/b43/sdio.c

index 8b1831454381ec5d0c81fc3b5693184f8f3a37bd..4808dc7044f801b21c0b7eaac35e5e3b556bb16f 100644 (file)
@@ -163,6 +163,7 @@ static int b43_sdio_probe(struct sdio_func *func,
 err_free_ssb:
        kfree(sdio);
 err_disable_func:
+       sdio_claim_host(func);
        sdio_disable_func(func);
 err_release_host:
        sdio_release_host(func);