Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36c547af authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: dma-mapping-fast: Fix error code for dma_map_sg



Zero indicates an error. Values less than zero trigger a bug, which is
undesirable.

Change-Id: I36296eeaf32a463503f7fe0a476ad2a35211c8e5
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 0df84ac3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -434,7 +434,8 @@ static int fast_smmu_map_sg(struct device *dev, struct scatterlist *sg,
			    int nents, enum dma_data_direction dir,
			    unsigned long attrs)
{
	return -EINVAL;
	/* 0 indicates error */
	return 0;
}

static void fast_smmu_unmap_sg(struct device *dev,