diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2024-07-10 20:10:50 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-07-11 05:44:10 +0300 |
commit | ce2065c4cc4f05635413f63f6dc038d7d4842e31 (patch) | |
tree | 67c2b1550e3ef682e1d78c7417c13d10bf37a72b /drivers/hid/hid-lg2ff.c | |
parent | c03d740152f78e86945a75b2ad541bf972fab92a (diff) | |
download | linux-ce2065c4cc4f05635413f63f6dc038d7d4842e31.tar.xz |
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/hid/hid-lg2ff.c')
0 files changed, 0 insertions, 0 deletions