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

Commit ea1cded2 authored by Patrick Daly's avatar Patrick Daly Committed by Liam Mark
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 72e259dd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -466,7 +466,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,