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.2.6~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7cd8fc525c9322ceb1f1de26d7c6201aef9d842;p=pandora-kernel.git iommu/msm: Fix error handling in msm_iommu_unmap() commit 05df1f3c2afaef5672627f2b7095f0d4c4dbc3a0 upstream. 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 Signed-off-by: Joerg Roedel Acked-by: David Brown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed