mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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: Joerg Roedel <jroedel@suse.de> Tested-by: Jerry Hoemann <jerry.hoemann@hp.com>
This commit is contained in:
parent
599bad38cf
commit
1196c2fb04
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue