From: Joerg Roedel Date: Thu, 26 Jan 2012 17:25:37 +0000 (+0100) Subject: iommu/msm: Fix error handling in msm_iommu_unmap() X-Git-Tag: v3.3-rc3~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05df1f3c2afaef5672627f2b7095f0d4c4dbc3a0;p=pandora-kernel.git iommu/msm: Fix error handling in msm_iommu_unmap() Error handling in msm_iommu_unmap() is broken. On some error conditions retval is set to a non-zero value which causes the function to return 'len' at the end. This hides the error from the user. Zero should be returned in those error cases. Cc: David Brown Cc: Stepan Moskovchenko Cc: stable@vger.kernel.org # >= 3.1 Signed-off-by: Joerg Roedel Acked-by: David Brown --- Reading git-diff-tree failed