From 0ada6505a6c7bb480f104015ec72e9a3b1896b94 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Thu, 27 May 2004 19:24:30 +0000 Subject: prevent Oops when PES filter is set with invalid pes_type --- linux/drivers/media/dvb/dvb-core/dvb_demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb') 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); -- cgit v1.2.3