提交 69c7da9c 编写于 作者: J Jason Yan 提交者: Xie XiuQi

Revert "scsi: libsas: delete sas port out of the disco mutex"

hulk inclusion
category: bugfix
bugzilla: 14264
CVE: NA

---------------------------

This reverts commit d8fa4fd57afce5dfae2a8fc5f53002ff261578c3.

This patch is to fix an issue in linux kernel 5.0. Hulk 4.19 does
not need this patch. This will cause kernel panic when cascade expanders
hotplugging.
Signed-off-by: NJason Yan <yanaijie@huawei.com>
Reviewed-by: Nzhengbin <zhengbin13@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b30bef17
......@@ -886,7 +886,7 @@ static struct domain_device *sas_ex_discover_end_dev(
list_del(&child->dev_list_node);
spin_unlock_irq(&parent->port->dev_list_lock);
out_free:
list_add_tail(&phy->port->del_list, &parent->port->sas_port_del_list);
sas_port_delete(phy->port);
out_err:
phy->port = NULL;
sas_put_device(child);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册