diff options
author | Christoph Hellwig <hch@lst.de> | 2006-01-11 08:20:43 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-12 12:53:54 -0500 |
commit | 33b114e935a2202206e224dd2c695cee5a5986bf (patch) | |
tree | be8a435458696c51495dba8f8866cb1d32d3bff6 /drivers/scsi/scsi_transport_sas.c | |
parent | 0b9506723826c68b50fa33e345700ddcac1bed36 (diff) |
[SCSI] sas: clear parent->rphy in sas_rphy_delete
We need to clear the backpointer on rphy removal, else we'll run into
problems with host removal after a device has been hot unplugged.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_sas.c')
-rw-r--r-- | drivers/scsi/scsi_transport_sas.c | 2 |
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) | |||
697 | list_del(&rphy->list); | 697 | list_del(&rphy->list); |
698 | spin_unlock(&sas_host->lock); | 698 | spin_unlock(&sas_host->lock); |
699 | 699 | ||
700 | parent->rphy = NULL; | ||
701 | |||
700 | put_device(&parent->dev); | 702 | put_device(&parent->dev); |
701 | } | 703 | } |
702 | EXPORT_SYMBOL(sas_rphy_delete); | 704 | EXPORT_SYMBOL(sas_rphy_delete); |