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

View File

@ -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;
}