summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-05-27 19:24:30 +0000
committerJohannes Stezenbach <devnull@localhost>2004-05-27 19:24:30 +0000
commit0ada6505a6c7bb480f104015ec72e9a3b1896b94 (patch)
tree577f66a3a4364cdae036fc2003a0b52b50a036c8 /linux/drivers/media/dvb
parent4224844ed78c838d638e01c957d846eb36e2095f (diff)
downloadmediapointer-dvb-s2-0ada6505a6c7bb480f104015ec72e9a3b1896b94.tar.gz
mediapointer-dvb-s2-0ada6505a6c7bb480f104015ec72e9a3b1896b94.tar.bz2
prevent Oops when PES filter is set with invalid pes_type
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_demux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
index 18be3f964..ccf8a5b66 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -796,7 +796,7 @@ static int dvbdmx_release_ts_feed(struct dmx_demux *dmx, struct dmx_ts_feed *ts_
feed->pid = 0xffff;
- if (feed->ts_type & TS_DECODER)
+ if (feed->ts_type & TS_DECODER && feed->pes_type < DMX_TS_PES_OTHER)
demux->pesfilter[feed->pes_type] = NULL;
up(&demux->mutex);