forked from luck/tmp_suning_uos_patched
media: dvb-core: Fix receiving invalid EIT-sections
Resetting buf without resetting pusi_seen at a channel-switch can lead to copying the rest of a section to the start of buf, but treating it as a complete section, when the next pusi arrives. EIT-sections starting without valid header were randomly received during an EIT-scan on a transponder. Signed-off-by: Johann Friedrichs <johann.friedrichs@web.de> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
c12495132d
commit
000e675182
|
@ -971,6 +971,7 @@ static int dmx_section_feed_start_filtering(struct dmx_section_feed *feed)
|
||||||
dvbdmxfeed->feed.sec.secbuf = dvbdmxfeed->feed.sec.secbuf_base;
|
dvbdmxfeed->feed.sec.secbuf = dvbdmxfeed->feed.sec.secbuf_base;
|
||||||
dvbdmxfeed->feed.sec.secbufp = 0;
|
dvbdmxfeed->feed.sec.secbufp = 0;
|
||||||
dvbdmxfeed->feed.sec.seclen = 0;
|
dvbdmxfeed->feed.sec.seclen = 0;
|
||||||
|
dvbdmxfeed->pusi_seen = false;
|
||||||
|
|
||||||
if (!dvbdmx->start_feed) {
|
if (!dvbdmx->start_feed) {
|
||||||
mutex_unlock(&dvbdmx->mutex);
|
mutex_unlock(&dvbdmx->mutex);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user