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

Commit c00a46ab authored by Vernon Sauder's avatar Vernon Sauder Committed by Pierre Ossman
Browse files

pxamci: fix dma_unmap_sg length



dma_unmap_sg should be given the same length as dma_map_sg, not the
value returned from dma_map_sg

Signed-off-by: default avatarVernon Sauder <vsauder@inhand.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 6a79e391
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
		return 0;

	DCSR(host->dma) = 0;
	dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->dma_len,
	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
		     host->dma_dir);

	if (stat & STAT_READ_TIME_OUT)