[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D4DB5CBA.37A86%manish.rangankar@cavium.com>
Date: Tue, 28 Feb 2017 11:29:34 +0000
From: "Rangankar, Manish" <Manish.Rangankar@...ium.com>
To: Colin King <colin.king@...onical.com>,
Dept-Eng QLogic Storage Upstream
<QLogic-Storage-Upstream@...ium.com>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>
CC: "kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scsi: qedi: fix missing return error code check on call
to qedi_setup_int
On 28/02/17 4:32 PM, "Colin King" <colin.king@...onical.com> wrote:
>From: Colin Ian King <colin.king@...onical.com>
>
>The call to qedi_setup_int is not updating the return code rc yet rc
>is being checked for an error. Fix this by assigning rc to the return
>code from the call to qedi_setup_int.
>
>Signed-off-by: Colin Ian King <colin.king@...onical.com>
>---
> drivers/scsi/qedi/qedi_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
>index 5eda21d..8e3d928 100644
>--- a/drivers/scsi/qedi/qedi_main.c
>+++ b/drivers/scsi/qedi/qedi_main.c
>@@ -1805,7 +1805,7 @@ static int __qedi_probe(struct pci_dev *pdev, int
>mode)
> */
> qedi_ops->common->update_pf_params(qedi->cdev, &qedi->pf_params);
>
>- qedi_setup_int(qedi);
>+ rc = qedi_setup_int(qedi);
> if (rc)
> goto stop_iscsi_func;
>
>--
>2.10.2
>
Acked-by: Manish Rangankar <Manish.Rangankar@...ium.com>
Powered by blists - more mailing lists