summaryrefslogtreecommitdiff
path: root/drivers/scsi/csiostor/csio_wr.c
diff options
context:
space:
mode:
authorSaurav Kashyap <skashyap@marvell.com>2024-07-10 22:40:50 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2024-07-10 22:44:10 -0400
commitce2065c4cc4f05635413f63f6dc038d7d4842e31 (patch)
tree67c2b1550e3ef682e1d78c7417c13d10bf37a72b /drivers/scsi/csiostor/csio_wr.c
parentc03d740152f78e86945a75b2ad541bf972fab92a (diff)
downloadlwn-ce2065c4cc4f05635413f63f6dc038d7d4842e31.tar.gz
lwn-ce2065c4cc4f05635413f63f6dc038d7d4842e31.zip
scsi: qla2xxx: Return ENOBUFS if sg_cnt is more than one for ELS cmds
Firmware only supports single DSDs in ELS Pass-through IOCB (0x53h), sg cnt is decided by the SCSI ML. User is not aware of the cause of an acutal error. Return the appropriate return code that will be decoded by API and application and proper error message will be displayed to user. Fixes: 6e98016ca077 ("[SCSI] qla2xxx: Re-organized BSG interface specific code.") Cc: stable@vger.kernel.org Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20240710171057.35066-5-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor/csio_wr.c')
0 files changed, 0 insertions, 0 deletions