mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
scsi: ufs: Fix wrong value printed in unexpected UPIU response case
[ Upstream commit2483ae0a56] In ufshcd_transfer_rsp_status(), the default case of the inner switch statement prints the UPIU response code when an unexpected response is received. However, the code was printing 'result' variable which is always 0 at that point, making the error message useless for debugging. Fix this by printing the actual UPIU response code returned by ufshcd_get_req_rsp(). Fixes:08108d3112("scsi: ufs: Improve type safety") Signed-off-by: Chanwoo Lee <cw9316.lee@samsung.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20260527092134.275887-1-cw9316.lee@samsung.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
4f944acca6
commit
10e05b5ff0
@@ -5407,7 +5407,7 @@ ufshcd_transfer_rsp_status(struct ufs_hba *hba, struct ufshcd_lrb *lrbp,
|
||||
default:
|
||||
dev_err(hba->dev,
|
||||
"Unexpected request response code = %x\n",
|
||||
result);
|
||||
ufshcd_get_req_rsp(lrbp->ucd_rsp_ptr));
|
||||
result = DID_ERROR << 16;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user