Skip to content

Commit

Permalink
iommu: Propagate error in add_iommu_group
Browse files Browse the repository at this point in the history
Make sure any errors reported from the IOMMU drivers get
progapated back to the IOMMU core.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Jun 5, 2015
1 parent 269aa80 commit 19762d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/iommu/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 19762d7

Please sign in to comment.