提交 33b114e9 编写于 作者: C Christoph Hellwig 提交者: James Bottomley

[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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 0b950672
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册