From: Laurent Pinchart Date: Fri, 14 Mar 2014 13:00:56 +0000 (+0100) Subject: iommu/ipmmu-vmsa: Cleanup failures of ARM mapping creation or attachment X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~107^2~4^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8f80bffd51f4ef029051d6898d9c2e3e5637dc3;p=pandora-kernel.git iommu/ipmmu-vmsa: Cleanup failures of ARM mapping creation or attachment The ARM IOMMU mapping needs to be released when attaching the device fails. Add arm_iommu_release_mapping() to the error code path. This is safe to call with a NULL mapping, so no specific check is needed. Cleanup is also missing when failing to create a mapping. Jump to the error code path in that case instead of returning immediately. Signed-off-by: Laurent Pinchart --- Reading git-diff-tree failed