kernel-ark/drivers/media/dvb/dvb-core
Francesco Lavra 691c9ae099 V4L/DVB: dvb-core: fix initialization of feeds list in demux filter
A DVB demultiplexer device can be used to set up either a PES filter or
a section filter. In the former case, the ts field of the feed union of
struct dmxdev_filter is used, in the latter case the sec field of the
same union is used.
The ts field is a struct list_head, and is currently initialized in the
open() method of the demux device. When for a given demuxer a section
filter is set up, the sec field is played with, thus if a PES filter
needs to be set up after that the ts field will be corrupted, causing a
kernel oops.
This fix moves the list head initialization to
dvb_dmxdev_pes_filter_set(), so that the ts field is properly
initialized every time a PES filter is set up.

Signed-off-by: Francesco Lavra <francescolavra@interfree.it>
Cc: stable <stable@kernel.org>
Reviewed-by: Andy Walls <awalls@radix.net>
Tested-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-02-08 10:47:17 -02:00
..
demux.h
dmxdev.c V4L/DVB: dvb-core: fix initialization of feeds list in demux filter 2010-02-08 10:47:17 -02:00
dmxdev.h V4L/DVB (12275): Add two new ioctls: DMX_ADD_PID and DMX_REMOVE_PID 2009-09-12 12:17:43 -03:00
dvb_ca_en50221.c V4L/DVB (10391): dvb: constify VFTs 2009-03-30 12:42:34 -03:00
dvb_ca_en50221.h V4L/DVB (9054): implement proper locking in the dvb ca en50221 driver 2009-01-29 08:35:37 -02:00
dvb_demux.c V4L/DVB: dvb_demux: Don't use vmalloc at dvb_dmx_swfilter_packet 2010-02-08 10:46:58 -02:00
dvb_demux.h V4L/DVB (13271): TS speed check. Logging transport stream speed in Kbits per second 2009-12-05 18:41:11 -02:00
dvb_filter.c
dvb_filter.h
dvb_frontend.c V4L/DVB (13157): dvb_frontend: represent all DVBS2API commands via macro 2009-12-05 18:40:37 -02:00
dvb_frontend.h tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
dvb_math.c
dvb_math.h
dvb_net.c tree-wide: fix a very frequent spelling mistake 2009-11-09 09:40:54 +01:00
dvb_net.h
dvb_ringbuffer.c
dvb_ringbuffer.h
dvbdev.c Driver-Core: extend devnode callbacks to provide permissions 2009-09-19 12:50:38 -07:00
dvbdev.h V4L/DVB (13103): create a standard method for dvb adapter drivers to override frontend ioctls 2009-12-05 18:40:21 -02:00
Makefile