|
@@ -1833,8 +1833,10 @@ static int storvsc_probe(struct hv_device *device,
|
|
fc_host_node_name(host) = stor_device->node_name;
|
|
fc_host_node_name(host) = stor_device->node_name;
|
|
fc_host_port_name(host) = stor_device->port_name;
|
|
fc_host_port_name(host) = stor_device->port_name;
|
|
stor_device->rport = fc_remote_port_add(host, 0, &ids);
|
|
stor_device->rport = fc_remote_port_add(host, 0, &ids);
|
|
- if (!stor_device->rport)
|
|
|
|
|
|
+ if (!stor_device->rport) {
|
|
|
|
+ ret = -ENOMEM;
|
|
goto err_out4;
|
|
goto err_out4;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
return 0;
|
|
return 0;
|