Skip to content

Commit

Permalink
[SCSI] sas: clear parent->rphy in sas_rphy_delete
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Jan 12, 2006
1 parent 0b95067 commit 33b114e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33b114e

Please sign in to comment.