login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
13
Re: [PATCH 1/1] kfifo: fix DMA sample driver
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Ira W. Snyder
Subject:
Re: [PATCH 1/1] kfifo: fix DMA sample driver
Date: Friday, August 13, 2010 - 11:34 am
On Fri, Aug 13, 2010 at 11:32:11AM -0700, Ira W. Snyder wrote:
quoted text
> The kfifo DMA sample driver is broken. It does not properly initialize > the scatterlist, and therefore causes a kernel BUG with > CONFIG_DEBUG_SG=y. > > Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> > ---
Whoops, forgot to CC Stefani Seibold.
quoted text
> samples/kfifo/dma-example.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/samples/kfifo/dma-example.c b/samples/kfifo/dma-example.c > index b9482c2..baa5060 100644 > --- a/samples/kfifo/dma-example.c > +++ b/samples/kfifo/dma-example.c > @@ -45,6 +45,9 @@ static int __init example_init(void) > > printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); > > + /* initialize scatterlist */ > + sg_init_table(sg, ARRAY_SIZE(sg)); > + > ret = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); > printk(KERN_INFO "DMA sgl entries: %d\n", ret); > > -- > 1.7.1 >
--
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 1/1] kfifo: fix DMA sample driver
, Ira W. Snyder
, (Fri Aug 13, 11:32 am)
Re: [PATCH 1/1] kfifo: fix DMA sample driver
, Ira W. Snyder
, (Fri Aug 13, 11:34 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Casey Schaufler
Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Dan Chokola
Re: how do you "force a pull"?
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Colocation donated by:
Syndicate