Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b977d305 authored by Marty Faltesek's avatar Marty Faltesek Committed by Kalle Valo
Browse files

mwifiex: fw download does not release sdio bus during failure

parent bb28c28e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}