mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [pxamci] fix dma_unmap_sg length
@ 2008-12-30  0:21 Vernon Sauder
  2008-12-31 17:57 ` Pierre Ossman
  0 siblings, 1 reply; 2+ messages in thread
From: Vernon Sauder @ 2008-12-30  0:21 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: linux-kernel

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>
---
based on latest Linus tree
 drivers/mmc/host/pxamci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
index 83ffe8e..3fb2be9 100644
--- a/drivers/mmc/host/pxamci.c
+++ b/drivers/mmc/host/pxamci.c
@@ -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)
-- 
1.5.2.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [pxamci] fix dma_unmap_sg length
  2008-12-30  0:21 [PATCH] [pxamci] fix dma_unmap_sg length Vernon Sauder
@ 2008-12-31 17:57 ` Pierre Ossman
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Ossman @ 2008-12-31 17:57 UTC (permalink / raw)
  To: Vernon Sauder; +Cc: linux-kernel

On Mon, 29 Dec 2008 19:21:28 -0500
Vernon Sauder <vernoninhand@gmail.com> wrote:

> 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>
> ---

Quite right. Queued.

Thanks
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-31 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-30  0:21 [PATCH] [pxamci] fix dma_unmap_sg length Vernon Sauder
2008-12-31 17:57 ` Pierre Ossman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®