summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_sas.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_transport_sas.c')
-rw-r--r--drivers/scsi/scsi_transport_sas.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index edabbd05d258..357b52f5f996 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -697,6 +697,8 @@ sas_rphy_delete(struct sas_rphy *rphy)
list_del(&rphy->list);
spin_unlock(&sas_host->lock);
+ parent->rphy = NULL;
+
put_device(&parent->dev);
}
EXPORT_SYMBOL(sas_rphy_delete);
OpenPOWER on IntegriCloud