login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
17
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Figo.zhang
Subject:
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
Date: Tuesday, November 16, 2010 - 6:39 pm
于 11/17/2010 09:38 AM, Andrew Chew 写道:
quoted text
>>> diff --git a/drivers/media/video/videobuf-dma-contig.c >> b/drivers/media/video/videobuf-dma-contig.c >>> index c969111..f7e0f86 100644 >>> --- a/drivers/media/video/videobuf-dma-contig.c >>> +++ b/drivers/media/video/videobuf-dma-contig.c >>> @@ -193,6 +193,8 @@ static struct videobuf_buffer >> *__videobuf_alloc_vb(size_t size) >>> if (vb) { >>> mem = vb->priv = ((char *)vb) + size; >>> mem->magic = MAGIC_DC_MEM; >>> + INIT_LIST_HEAD(&vb->stream); >>> + INIT_LIST_HEAD(&vb->queue); >> >> i think it no need to be init, it just a list-entry. > > Okay, if that's really the case, then sh_mobile_ceu_camera.c, pxa_camera.c, mx1_camera.c, mx2_camera.c, and omap1_camera.c needs to be fixed to remove that WARN_ON(!list_empty(&vb->queue)); in their videobuf_prepare() methods, because those WARN_ON's are assuming that vb->queue is properly initialized as a list head. > > Which will it be?
yes, i think those WARN_ONs are no need. --
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] videobuf: Initialize lists in videobuf_buffer.
, achew
, (Tue Nov 16, 1:24 pm)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Figo.zhang
, (Tue Nov 16, 6:10 pm)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Figo.zhang
, (Tue Nov 16, 6:39 pm)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Hans Verkuil
, (Wed Nov 17, 12:11 am)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Hans Verkuil
, (Wed Nov 17, 12:13 am)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Figo.zhang
, (Wed Nov 17, 12:16 am)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Hans Verkuil
, (Wed Nov 17, 12:52 am)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Laurent Pinchart
, (Wed Nov 17, 5:37 am)
Re: [PATCH 1/1] videobuf: Initialize lists in videobuf_buffer.
, Hans Verkuil
, (Wed Nov 17, 5:44 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Linus Torvalds
Linux 2.6.34-rc4
Mingming Cao
Re: [RFC 1/4] Large Blocksize support for Ext2/3/4
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Adeodato
Bazaar's patience diff as GIT_EXTERNAL_DIFF
Denis Bueno
Git clone error
Johannes Schindelin
Re: [PATCH 2/4] Add functions get_relative_cwd() and is_inside_dir()
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate