[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BYAPR18MB299852960224776DF536EEA3D8659@BYAPR18MB2998.namprd18.prod.outlook.com>
Date: Mon, 22 Mar 2021 14:43:29 +0000
From: Manish Rangankar <mrangankar@...vell.com>
To: Jia-Ju Bai <baijiaju1990@...il.com>,
Nilesh Javali <njavali@...vell.com>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>
CC: GR-QLogic-Storage-Upstream <GR-QLogic-Storage-Upstream@...vell.com>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [EXT] [PATCH] scsi: qedi: fix error return code of
qedi_alloc_global_queues()
> -----Original Message-----
> From: Jia-Ju Bai <baijiaju1990@...il.com>
> Sent: Monday, March 8, 2021 9:00 AM
> To: Nilesh Javali <njavali@...vell.com>; Manish Rangankar
> <mrangankar@...vell.com>; jejb@...ux.ibm.com;
> martin.petersen@...cle.com
> Cc: GR-QLogic-Storage-Upstream <GR-QLogic-Storage-
> Upstream@...vell.com>; linux-scsi@...r.kernel.org; linux-
> kernel@...r.kernel.org; Jia-Ju Bai <baijiaju1990@...il.com>
> Subject: [EXT] [PATCH] scsi: qedi: fix error return code of
> qedi_alloc_global_queues()
>
> External Email
>
> ----------------------------------------------------------------------
> When kzalloc() returns NULL to qedi->global_queues[i], no error return code of
> qedi_alloc_global_queues() is assigned.
> To fix this bug, status is assigned with -ENOMEM in this case.
>
> Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver
> framework.")
> Reported-by: TOTE Robot <oslab@...nghua.edu.cn>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@...il.com>
> ---
> drivers/scsi/qedi/qedi_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index
> 47ad64b06623..69c5b5ee2169 100644
> --- a/drivers/scsi/qedi/qedi_main.c
> +++ b/drivers/scsi/qedi/qedi_main.c
> @@ -1675,6 +1675,7 @@ static int qedi_alloc_global_queues(struct qedi_ctx
> *qedi)
> if (!qedi->global_queues[i]) {
> QEDI_ERR(&qedi->dbg_ctx,
> "Unable to allocation global queue %d.\n", i);
> + status = -ENOMEM;
> goto mem_alloc_failure;
> }
>
> --
> 2.17.1
Thanks,
Acked-by: Manish Rangankar <mrangankar@...vell.com>
Powered by blists - more mailing lists