Unverified Commit 421a616c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6414 [sync] PR-5510: bus: mhi: host: Drop chan lock before queuing buffers

parents cfe96355 394b43dc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -570,6 +570,8 @@ static int parse_xfer_event(struct mhi_controller *mhi_cntrl,
			mhi_del_ring_element(mhi_cntrl, tre_ring);
			local_rp = tre_ring->rp;

			read_unlock_bh(&mhi_chan->lock);

			/* notify client */
			mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result);

@@ -592,6 +594,8 @@ static int parse_xfer_event(struct mhi_controller *mhi_cntrl,
					kfree(buf_info->cb_buf);
				}
			}

			read_lock_bh(&mhi_chan->lock);
		}
		break;
	} /* CC_EOT */