mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dw_dmac: Fix copy/paste bug in tasklet
@ 2008-09-30 14:27 Haavard Skinnemoen
  2008-10-03  9:26 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Haavard Skinnemoen @ 2008-09-30 14:27 UTC (permalink / raw)
  To: dan.j.williams
  Cc: maciej.sosnowski, linux-kernel, Nicolas Ferre, Haavard Skinnemoen

The tasklet checks RAW.BLOCK twice, and does not check RAW.XFER. This is
obviously wrong, and could theoretically cause the driver to hang.

Reported-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
---
 drivers/dma/dw_dmac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 94df917..0778d99 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -364,7 +364,7 @@ static void dw_dma_tasklet(unsigned long data)
 	int i;
 
 	status_block = dma_readl(dw, RAW.BLOCK);
-	status_xfer = dma_readl(dw, RAW.BLOCK);
+	status_xfer = dma_readl(dw, RAW.XFER);
 	status_err = dma_readl(dw, RAW.ERROR);
 
 	dev_vdbg(dw->dma.dev, "tasklet: status_block=%x status_err=%x\n",
-- 
1.5.6.5


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

end of thread, other threads:[~2008-10-03 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 14:27 [PATCH] dw_dmac: Fix copy/paste bug in tasklet Haavard Skinnemoen
2008-10-03  9:26 ` Andrew Morton
2008-10-03 15:39   ` Dan Williams

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

Powered by JetHome