mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
scsi: smartpqi: unlock on error in pqi_submit_raid_request_synchronous()
[ Upstream commitcc8f52609b] We need to drop the "ctrl_info->sync_request_sem" lock before returning. Fixes:6c223761eb("smartpqi: initial commit of Microsemi smartpqi driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c27a9807d6
commit
569899ffe1
@@ -3686,8 +3686,10 @@ static int pqi_submit_raid_request_synchronous(struct pqi_ctrl_info *ctrl_info,
|
||||
return -ETIMEDOUT;
|
||||
msecs_blocked =
|
||||
jiffies_to_msecs(jiffies - start_jiffies);
|
||||
if (msecs_blocked >= timeout_msecs)
|
||||
return -ETIMEDOUT;
|
||||
if (msecs_blocked >= timeout_msecs) {
|
||||
rc = -ETIMEDOUT;
|
||||
goto out;
|
||||
}
|
||||
timeout_msecs -= msecs_blocked;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user