scsi: storvsc: missing error code in storvsc_probe()
commit22f16a74c4744f8b0d83fd0d031be2137e764cbf
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Jan 2018 10:40:22 +0000 (16 13:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Feb 2018 09:19:49 +0000 (13 10:19 +0100)
tree62beb2a4b1133079959b8f2ffdaade42efc66146
parentf18046f7a50accf76dab9c6ab274a7e38143a0dc
scsi: storvsc: missing error code in storvsc_probe()

commit ca8dc694045e9aa248e9916e0f614deb0494cb3d upstream.

We should set the error code if fc_remote_port_add() fails.

Cc: <stable@vger.kernel.org> #v4.12+
Fixes: daf0cd445a21 ("scsi: storvsc: Add support for FC rport.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Cathy Avery <cavery@redhat.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Long Li <longli@microsoft.com>
drivers/scsi/storvsc_drv.c