From: Gleb C. <lna...@ya...> - 2023-07-21 07:39:16
|
Commit: ceff753 GitHub URL: https://github.com/SCST-project/scst/commit/ceff753e131d75c9c7a12eadc625d90807943c89 Author: Gleb Chesnokov Date: 2023-07-21T10:38:34+03:00 Log Message: ----------- qla2x00t-32gbit: 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: 80676d054e5a ("scsi: qla2xxx: Fix session cleanup hang") Signed-off-by: Dan Carpenter <dan...@li...> Link: https://lore.kernel.org/r/498...@mo...untain Signed-off-by: Martin K. Petersen <mar...@or...> [ commit e579b007eff3f upstream ] Modified Paths: -------------- qla2x00t-32gbit/qla_iocb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =================================================================== diff --git a/qla2x00t-32gbit/qla_iocb.c b/qla2x00t-32gbit/qla_iocb.c index 7cd7ef2..6670b37 100644 --- a/qla2x00t-32gbit/qla_iocb.c +++ b/qla2x00t-32gbit/qla_iocb.c @@ -3928,7 +3928,7 @@ qla2x00_start_sp(srb_t *sp) pkt = __qla2x00_alloc_iocbs(sp->qpair, sp); if (!pkt) { - rval = EAGAIN; + rval = -EAGAIN; ql_log(ql_log_warn, vha, 0x700c, "qla2x00_alloc_iocbs failed.\n"); goto done; |