|
@@ -55,6 +55,10 @@ static void zfcp_scsi_slave_destroy(struct scsi_device *sdev)
|
|
|
{
|
|
{
|
|
|
struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
|
|
struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
|
|
|
|
|
|
|
|
|
|
+ /* if previous slave_alloc returned early, there is nothing to do */
|
|
|
|
|
+ if (!zfcp_sdev->port)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
zfcp_erp_lun_shutdown_wait(sdev, "scssd_1");
|
|
zfcp_erp_lun_shutdown_wait(sdev, "scssd_1");
|
|
|
put_device(&zfcp_sdev->port->dev);
|
|
put_device(&zfcp_sdev->port->dev);
|
|
|
}
|
|
}
|