Skip to content

Commit ce2065c

Browse files
Saurav Kashyapmartinkpetersen
authored andcommitted
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: 6e98016 ("[SCSI] qla2xxx: Re-organized BSG interface specific code.") Cc: [email protected] Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c03d740 commit ce2065c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_bsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ qla2x00_process_els(struct bsg_job *bsg_job)
324324
"request_sg_cnt=%x reply_sg_cnt=%x.\n",
325325
bsg_job->request_payload.sg_cnt,
326326
bsg_job->reply_payload.sg_cnt);
327-
rval = -EPERM;
327+
rval = -ENOBUFS;
328328
goto done;
329329
}
330330

0 commit comments

Comments
 (0)