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

Commit 4512b82e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Fix race condition in rls_work and ufshcd_resume"

parents 1b97eb84 4bf2157b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7074,8 +7074,8 @@ static void ufshcd_rls_handler(struct work_struct *work)
	u32 mode;

	hba = container_of(work, struct ufs_hba, rls_work);
	ufshcd_scsi_block_requests(hba);
	pm_runtime_get_sync(hba->dev);
	ufshcd_scsi_block_requests(hba);
	down_write(&hba->lock);
	ret = ufshcd_wait_for_doorbell_clr(hba, U64_MAX);
	if (ret) {