From: Marty Faltesek Date: Wed, 20 Apr 2016 04:20:52 +0000 (-0400) Subject: mwifiex: fw download does not release sdio bus during failure X-Git-Tag: v4.7-rc1~154^2~146^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b977d305ad20e05212c0ded2a7ef90e411edc1b3;p=karo-tx-linux.git mwifiex: fw download does not release sdio bus during failure Signed-off-by: Marty Faltesek Reviewed-by: Julian Calaby Signed-off-by: Kalle Valo --- 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; }