diff options
author | Johannes Stezenbach <devnull@localhost> | 2003-10-31 13:13:13 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2003-10-31 13:13:13 +0000 |
commit | eef1e0d32e307fbd71875b493dfe9c975fd64f0d (patch) | |
tree | b302aa6997664f0b78b6b1ad8588ca22ccbfca5c /linux/drivers/media | |
parent | 87891c33d5d669811b7696ba55b03f2c4f921242 (diff) | |
download | mediapointer-dvb-s2-eef1e0d32e307fbd71875b493dfe9c975fd64f0d.tar.gz mediapointer-dvb-s2-eef1e0d32e307fbd71875b493dfe9c975fd64f0d.tar.bz2 |
fix rare crash on invalid packets, patch by Asier Aguirre
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_demux.c | 2 |
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 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; |