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:
parent
bb28c28ee1
commit
b977d305ad
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue