diff options
author | Marty Faltesek <mfaltesek@google.com> | 2016-04-20 00:20:52 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-04-27 16:50:17 +0300 |
commit | b977d305ad20e05212c0ded2a7ef90e411edc1b3 (patch) | |
tree | f202b48f68d1ad30c452535aa6ca0efb8091c18c /drivers/net/wireless/marvell | |
parent | bb28c28ee10559c5bc5b5f48c2d6f6f2f6bd5586 (diff) | |
download | blackbird-op-linux-b977d305ad20e05212c0ded2a7ef90e411edc1b3.tar.gz blackbird-op-linux-b977d305ad20e05212c0ded2a7ef90e411edc1b3.zip |
mwifiex: fw download does not release sdio bus during failure
Signed-off-by: Marty Faltesek <mfaltesek@google.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/sdio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index cbd9dcd88b98..099722e1f867 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -1103,13 +1103,12 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter, offset += txlen; } while (true); - sdio_release_host(card->func); - mwifiex_dbg(adapter, MSG, "info: FW download over, size %d bytes\n", offset); ret = 0; done: + sdio_release_host(card->func); kfree(fwbuf); return ret; } |