iommu: Propagate error in add_iommu_group
authorJoerg Roedel <jroedel@suse.de>
Thu, 28 May 2015 16:41:26 +0000 (18:41 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 5 Jun 2015 13:13:09 +0000 (15:13 +0200)
Make sure any errors reported from the IOMMU drivers get
progapated back to the IOMMU core.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c

index 755e488..9c9336a 100644 (file)
@@ -750,9 +750,7 @@ static int add_iommu_group(struct device *dev, void *data)
 
        WARN_ON(dev->iommu_group);
 
-       ops->add_device(dev);
-
-       return 0;
+       return ops->add_device(dev);
 }
 
 static int iommu_bus_notifier(struct notifier_block *nb,