Skip to content

Commit

Permalink
pxamci: fix dma_unmap_sg length
Browse files Browse the repository at this point in the history
dma_unmap_sg should be given the same length as dma_map_sg, not the
value returned from dma_map_sg

Signed-off-by: Vernon Sauder <vsauder@inhand.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Vernon Sauder authored and Pierre Ossman committed Dec 31, 2008
1 parent 6a79e39 commit c00a46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c00a46a

Please sign in to comment.