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>
This commit is contained in:
Marty Faltesek 2016-04-20 00:20:52 -04:00 committed by Kalle Valo
parent bb28c28ee1
commit b977d305ad
1 changed files with 1 additions and 2 deletions

View File

@ -1103,13 +1103,12 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter,
offset += txlen; offset += txlen;
} while (true); } while (true);
sdio_release_host(card->func);
mwifiex_dbg(adapter, MSG, mwifiex_dbg(adapter, MSG,
"info: FW download over, size %d bytes\n", offset); "info: FW download over, size %d bytes\n", offset);
ret = 0; ret = 0;
done: done:
sdio_release_host(card->func);
kfree(fwbuf); kfree(fwbuf);
return ret; return ret;
} }