Skip to content

Commit e579b00

Browse files
Dan Carpentermartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix error code in qla2x00_start_sp()
This should be negative -EAGAIN instead of positive. The callers treat non-zero error codes the same so it doesn't really impact runtime beyond some trivial differences to debug output. Fixes: 80676d0 ("scsi: qla2xxx: Fix session cleanup hang") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/49866d28-4cfe-47b0-842b-78f110e61aab@moroto.mountain Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 134f669 commit e579b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_iocb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3912,7 +3912,7 @@ qla2x00_start_sp(srb_t *sp)
39123912

39133913
pkt = __qla2x00_alloc_iocbs(sp->qpair, sp);
39143914
if (!pkt) {
3915-
rval = EAGAIN;
3915+
rval = -EAGAIN;
39163916
ql_log(ql_log_warn, vha, 0x700c,
39173917
"qla2x00_alloc_iocbs failed.\n");
39183918
goto done;

0 commit comments

Comments
 (0)