aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iommu/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 60ab474bfff3..8ed55b0a1ce4 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -247,7 +247,7 @@ int dmar_remove_dev_scope(struct dmar_pci_notify_info *info, u16 segment,
247 247
248 for_each_active_dev_scope(devices, count, index, tmp) 248 for_each_active_dev_scope(devices, count, index, tmp)
249 if (tmp == &info->dev->dev) { 249 if (tmp == &info->dev->dev) {
250 rcu_assign_pointer(devices[index].dev, NULL); 250 RCU_INIT_POINTER(devices[index].dev, NULL);
251 synchronize_rcu(); 251 synchronize_rcu();
252 put_device(tmp); 252 put_device(tmp);
253 return 1; 253 return 1;