Skip to content

Commit 9877c00

Browse files
qianfengrongmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix incorrect sign of error code in qla_nvme_xmt_ls_rsp()
Change the error code EAGAIN to -EAGAIN in qla_nvme_xmt_ls_rsp() to align with qla2x00_start_sp() returning negative error codes or QLA_SUCCESS, preventing logical errors. Fixes: 875386b ("scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe") Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Message-ID: <20250905075446.381139-4-rongqianfeng@vivo.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1f037e3 commit 9877c00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/qla2xxx/qla_nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int qla_nvme_xmt_ls_rsp(struct nvme_fc_local_port *lport,
419419
switch (rval) {
420420
case QLA_SUCCESS:
421421
break;
422-
case EAGAIN:
422+
case -EAGAIN:
423423
msleep(PURLS_MSLEEP_INTERVAL);
424424
cnt++;
425425
if (cnt < PURLS_RETRY_COUNT)

0 commit comments

Comments
 (0)