projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18a7424
)
libertas sdio: claim device before calling sdio_disable_func()
author
Alexey Khoroshilov
<
[email protected]
>
Mon, 18 Nov 2013 21:45:08 +0000
(
01:45
+0400)
committer
John W. Linville
<
[email protected]
>
Thu, 5 Dec 2013 19:56:24 +0000
(14:56 -0500)
There is a failure path in if_sdio_power_on(), where
sdio_disable_func() is called without claiming the device.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/libertas/if_sdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/if_sdio.c
b/drivers/net/wireless/libertas/if_sdio.c
index 828e7f4fc6332e0ea3c621a354915f50a70515ac..58c6ee5de98f9256b2e3db4735adbfe1fed299bd 100644
(file)
--- a/
drivers/net/wireless/libertas/if_sdio.c
+++ b/
drivers/net/wireless/libertas/if_sdio.c
@@
-907,8
+907,8
@@
static int if_sdio_power_on(struct if_sdio_card *card)
sdio_release_host(func);
ret = if_sdio_prog_firmware(card);
if (ret) {
- sdio_
disable_func
(func);
-
return ret
;
+ sdio_
claim_host
(func);
+
goto disable
;
}
return 0;