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

Commit 73183656 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm: dma-mapping.c: Change the dma length in sg lists"

parents c5b45082 f11762c4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1950,7 +1950,10 @@ int arm_iommu_map_sg(struct device *dev, struct scatterlist *sg,

	for_each_sg(sg, s, nents, i) {
		s->dma_address = iova + current_offset;
		s->dma_length = total_length - current_offset;
		if (i == 0)
			s->dma_length = total_length;
		else
			s->dma_length = 0;
		current_offset += s->length;
	}