Skip to contentSkip to conversation

mwifiex: fw download does not release sdio bus during failure

PATCH Applied Marty Faltesek 3 participants 3 messages Apr 20, 2016 – Apr 27, 2016 Marvell mwifiex wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mwifiex: fw download does not release sdio bus during failure

---
 drivers/net/wireless/marvell/mwifiex/sdio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/sdio.c +1 -2
index 4c8cae6..d6ef34f 100644
@@ -1026,13 +1026,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;
 }
Signature · 1 line
2.8.0.rc3.226.g39d4020
Reviewed-by on v2 1/1
#1 lore raw

Hi All,

Quoted 1 line · Marty Faltesek

This looks right to me.

Thanks,

Julian Calaby

Quoted 30 lines
---
 drivers/net/wireless/marvell/mwifiex/sdio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/sdio.c +1 -3
index 4c8cae6..d6ef34f 100644
@@ -1026,13 +1026,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;
 }
--

2.8.0.rc3.226.g39d4020

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/