Skip to content
Commit e8079322 authored by Daejun Park's avatar Daejun Park Committed by Greg Kroah-Hartman
Browse files

scsi: ufs: core: Fix referencing invalid rsp field

[ Upstream commit d5d92b64 ]

Fix referencing sense data when it is invalid. When the length of the data
segment is 0, there is no valid information in the rsp field, so
ufshpb_rsp_upiu() is returned without additional operation.

Link: https://lore.kernel.org/r/252651381.41652940482659.JavaMail.epsvc@epcpadp4


Fixes: 4b5f4907 ("scsi: ufs: ufshpb: L2P map management for HPB read")
Acked-by: default avatarAvri Altman <avri.altman@wdc.com>
Signed-off-by: default avatarDaejun Park <daejun7.park@samsung.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d0116a3f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment