]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: core: Fix referencing invalid rsp field
authorDaejun Park <daejun7.park@samsung.com>
Thu, 19 May 2022 06:05:29 +0000 (15:05 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 May 2022 01:01:02 +0000 (21:01 -0400)
commitd5d92b64408443e113b9742f8f1c35278910dd4d
tree85b899ebbe065f8aba58b90338e7d06a4451c95d
parent525f447f88b14a64424642de670f77424e067d5b
scsi: ufs: core: Fix referencing invalid rsp field

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: 4b5f49079c52 ("scsi: ufs: ufshpb: L2P map management for HPB read")
Acked-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c