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

Commit 8b7ed81c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mhi-dev: Block the adb read when mhi is in suspend"

parents 51bff274 4e0554f1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -874,6 +874,15 @@ static int mhi_uci_read_async(struct uci_client *uci_handle, int *bytes_avail)
	if (*bytes_avail < 0) {
		uci_log(UCI_DBG_ERROR, "Failed to read channel ret %dlu\n",
			*bytes_avail);
		if (uci_handle->in_chan == MHI_CLIENT_ADB_OUT) {
			uci_log(UCI_DBG_ERROR,
				"Read failed CH 36 free req from list\n");
			uci_handle->pkt_loc = NULL;
			uci_handle->pkt_size = 0;
			mhi_uci_put_req(uci_handle, ureq);
			*bytes_avail = 0;
			return ret_val;
		}
		mhi_uci_put_req(uci_handle, ureq);
		return -EIO;
	}