From eef1e0d32e307fbd71875b493dfe9c975fd64f0d Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Fri, 31 Oct 2003 13:13:13 +0000 Subject: fix rare crash on invalid packets, patch by Asier Aguirre --- linux/drivers/media/dvb/dvb-core/dvb_demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c index 53df83d5e..d33157091 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c @@ -273,7 +273,7 @@ static int dvb_dmx_swfilter_section_packet(struct dvb_demux_feed *feed, const u8 p += buf[p] + 1; // skip rest of last section count = 188 - p; - while (count) { + while (count > 0) { sec->crc_val = ~0; -- cgit v1.2.3