login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
3
Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Haavard Skinnemoen <haavard.skinnemoen@...>
Cc: <dan.j.williams@...>, <maciej.sosnowski@...>, <linux-kernel@...>, Nicolas Ferre <nicolas.ferre@...>
Subject:
Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
Date: Friday, October 3, 2008 - 5:26 am
On Tue, 30 Sep 2008 16:27:59 +0200 Haavard Skinnemoen <haavard.skinnemoen@atmel.com> wrote:
quoted text
> 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",
We haven't heard from Dan for a week and this still wasn't in his tree yesterday. I think I'll cheerily send it in to Linus for 2.6.27. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] dw_dmac: Fix copy/paste bug in tasklet
, Haavard Skinnemoen
, (Tue Sep 30, 10:27 am)
Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
, Andrew Morton
, (Fri Oct 3, 5:26 am)
Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
, Dan Williams
, (Fri Oct 3, 11:39 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
KAMEZAWA Hiroyuki
Re: 2.6.23-mm1
Bart Van Assche
Re: Integration of SCST in the mainstream Linux kernel
Dave Hansen
Re: [RFC/PATCH] Documentation of kernel messages
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Alan Cox
Re: [BUG] New Kernel Bugs
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Corey Minyard
[PATCH 3/3] Convert the UDP hash lock to RCU
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
612 guests
online.
Online users
lima365
Syndicate