media: dvb-core: Fix receiving invalid EIT-sections
authorJohann Friedrichs <johann.friedrichs@web.de>
Thu, 21 Nov 2019 15:19:05 +0000 (16:19 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 8 Jan 2020 10:46:34 +0000 (11:46 +0100)
commit000e6751825d756d7eb3fb4028a41add595204d9
treeef956a6c3c5d1b96eb7fa8d07e458af1f387fd8e
parentc12495132d41004aa63c3a6d79ca0c7d1b13604d
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>
drivers/media/dvb-core/dvb_demux.c