]> www.infradead.org Git - linux.git/commit
scsi: qla2xxx: Return ENOBUFS if sg_cnt is more than one for ELS cmds
authorSaurav Kashyap <skashyap@marvell.com>
Wed, 10 Jul 2024 17:10:50 +0000 (22:40 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jul 2024 02:44:10 +0000 (22:44 -0400)
commitce2065c4cc4f05635413f63f6dc038d7d4842e31
tree67c2b1550e3ef682e1d78c7417c13d10bf37a72b
parentc03d740152f78e86945a75b2ad541bf972fab92a
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>
drivers/scsi/qla2xxx/qla_bsg.c