From: Cathy Avery <cavery@redhat.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
"K. Y. Srinivasan" <kys@microsoft.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org,
Haiyang Zhang <haiyangz@microsoft.com>,
kernel-janitors@vger.kernel.org, devel@linuxdriverproject.org,
Stephen Hemminger <sthemmin@microsoft.com>
Subject: Re: [PATCH] scsi: storvsc: missing error code in storvsc_probe()
Date: Tue, 16 Jan 2018 14:36:24 +0000 [thread overview]
Message-ID: <5A5E0DE8.7080603@redhat.com> (raw)
In-Reply-To: <20180116104022.GA3517@mwanda>
On 01/16/2018 05:40 AM, Dan Carpenter wrote:
> We should set the error code if fc_remote_port_add() fails.
>
> Fixes: daf0cd445a21 ("scsi: storvsc: Add support for FC rport.")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 3b3d1d050cac..40fc7a590e81 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -1834,8 +1834,10 @@ static int storvsc_probe(struct hv_device *device,
> fc_host_node_name(host) = stor_device->node_name;
> fc_host_port_name(host) = stor_device->port_name;
> stor_device->rport = fc_remote_port_add(host, 0, &ids);
> - if (!stor_device->rport)
> + if (!stor_device->rport) {
> + ret = -ENOMEM;
> goto err_out4;
> + }
> }
> #endif
> return 0;
Reviewed-by: Cathy Avery <cavery@redhat.com>
WARNING: multiple messages have this Message-ID (diff)
From: Cathy Avery <cavery@redhat.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
"K. Y. Srinivasan" <kys@microsoft.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org,
Haiyang Zhang <haiyangz@microsoft.com>,
kernel-janitors@vger.kernel.org, devel@linuxdriverproject.org,
Stephen Hemminger <sthemmin@microsoft.com>
Subject: Re: [PATCH] scsi: storvsc: missing error code in storvsc_probe()
Date: Tue, 16 Jan 2018 09:36:24 -0500 [thread overview]
Message-ID: <5A5E0DE8.7080603@redhat.com> (raw)
In-Reply-To: <20180116104022.GA3517@mwanda>
On 01/16/2018 05:40 AM, Dan Carpenter wrote:
> We should set the error code if fc_remote_port_add() fails.
>
> Fixes: daf0cd445a21 ("scsi: storvsc: Add support for FC rport.")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 3b3d1d050cac..40fc7a590e81 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -1834,8 +1834,10 @@ static int storvsc_probe(struct hv_device *device,
> fc_host_node_name(host) = stor_device->node_name;
> fc_host_port_name(host) = stor_device->port_name;
> stor_device->rport = fc_remote_port_add(host, 0, &ids);
> - if (!stor_device->rport)
> + if (!stor_device->rport) {
> + ret = -ENOMEM;
> goto err_out4;
> + }
> }
> #endif
> return 0;
Reviewed-by: Cathy Avery <cavery@redhat.com>
next prev parent reply other threads:[~2018-01-16 14:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 10:40 [PATCH] scsi: storvsc: missing error code in storvsc_probe() Dan Carpenter
2018-01-16 10:40 ` Dan Carpenter
2018-01-16 14:36 ` Cathy Avery [this message]
2018-01-16 14:36 ` Cathy Avery
2018-01-16 15:10 ` KY Srinivasan
2018-01-17 6:18 ` Martin K. Petersen
2018-01-17 6:18 ` Martin K. Petersen
-- strict thread matches above, loose matches on Subject: below --
2018-02-08 23:50 Long Li
2018-02-08 23:50 ` Long Li
2018-02-09 8:01 ` Greg KH
2018-02-09 8:01 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5A5E0DE8.7080603@redhat.com \
--to=cavery@redhat.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@linuxdriverproject.org \
--cc=haiyangz@microsoft.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kys@microsoft.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=sthemmin@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.