]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iommu: qcom: v1: fix wrong sg interator
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Mon, 18 May 2015 11:20:15 +0000 (14:20 +0300)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:31 +0000 (09:54 +0000)
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
drivers/iommu/qcom/msm_iommu-v1.c

index e3676229a9eb6f6b1dc671e9c25c76d07467d1e5..43092d7e97782a6f3a2b46827478d1d894ee8939 100644 (file)
@@ -996,7 +996,7 @@ static size_t msm_iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
        }
 
        for_each_sg(sg, tmp, nents, i)
-               len += sg->length;
+               len += tmp->length;
 
        ret = msm_iommu_pagetable_map_range(&priv->pt, iova, sg, len, prot);
        if (ret)