From: Heiko Stübner Date: Wed, 29 Oct 2014 00:22:56 +0000 (+0100) Subject: iommu: Improve error handling when setting bus iommu X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~13^2~3^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7da6bdc322bb79c4326dff7c2727236a48c4be9;p=pandora-kernel.git iommu: Improve error handling when setting bus iommu When some part of bus_set_iommu fails it should undo any made changes and not simply leave everything as is. This includes unregistering the bus notifier in iommu_bus_init when add_iommu_group fails and also setting the bus->iommu_ops back to NULL. Signed-off-by: Heiko Stuebner Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed