mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
qla2x00t-32gbit: 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>
[ commit ce2065c4cc4f upstream ]
This commit is contained in:
@@ -327,7 +327,7 @@ qla2x00_process_els(BSG_JOB_TYPE *bsg_job)
|
||||
"request_sg_cnt=%x reply_sg_cnt=%x.\n",
|
||||
bsg_job->request_payload.sg_cnt,
|
||||
bsg_job->reply_payload.sg_cnt);
|
||||
rval = -EPERM;
|
||||
rval = -ENOBUFS;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user