summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorFrancesco Lavra <francescolavra@interfree.it>2010-02-07 09:49:58 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-02-23 07:37:51 -0800
commit134bb65d8d9fa4e8bf3a7637e983e8d01e063544 (patch)
treee652b9d26dc985ad5363de8178ca3f4323b028c4 /kernel
parent113819bc44213c5b931517f86a1c9c93c22e2f20 (diff)
V4L/DVB: dvb-core: fix initialization of feeds list in demux filter
commit 691c9ae099b9bcb5c27125af00a4a90120977458 upstream. 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> Reviewed-by: Andy Walls <awalls@radix.net> Tested-by: hermann pitton <hermann-pitton@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions