提交 1196c2fb 编写于 作者: J Joerg Roedel

iommu/vt-d: Only remove domain when device is removed

This makes sure any RMRR mappings stay in place when the
driver is unbound from the device.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
Tested-by: NJerry Hoemann <jerry.hoemann@hp.com>
上级 599bad38
......@@ -3865,8 +3865,7 @@ static int device_notifier(struct notifier_block *nb,
if (iommu_dummy(dev))
return 0;
if (action != BUS_NOTIFY_UNBOUND_DRIVER &&
action != BUS_NOTIFY_DEL_DEVICE)
if (action != BUS_NOTIFY_REMOVED_DEVICE)
return 0;
domain = find_domain(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册