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

Commit 19b73366 authored by Yuanfang Zhang's avatar Yuanfang Zhang
Browse files

qdss_bridge: fix NULL usb_ch of usb_qdss_close



Status of "opened" ENABLE cannot guarantee that usb_ch is not NULL when
calling usb_qdss_openfailed, this change modifies status of "opened" to
"DISABLE" when calling usb_qdss_open failed.

Change-Id: I2a1f30d0cfbbd2abef74d9c476f863f172cc1d08
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 55100ee0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -530,6 +530,7 @@ static void qdss_bridge_open_work_fn(struct work_struct *work)

	return;
err:
	drvdata->opened = DISABLE;
	mhi_unprepare_from_transfer(drvdata->mhi_dev);
	mhi_ch_close(drvdata);
err_open: