aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index a8e74c34dd27..12a541deae5e 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1195,6 +1195,8 @@ static int device_change_notifier(struct notifier_block *nb,
1195 case BUS_NOTIFY_UNBOUND_DRIVER: 1195 case BUS_NOTIFY_UNBOUND_DRIVER:
1196 if (!domain) 1196 if (!domain)
1197 goto out; 1197 goto out;
1198 if (iommu_pass_through)
1199 break;
1198 detach_device(domain, devid); 1200 detach_device(domain, devid);
1199 break; 1201 break;
1200 case BUS_NOTIFY_ADD_DEVICE: 1202 case BUS_NOTIFY_ADD_DEVICE: