V4L/DVB: dvb-core: Fix ULE decapsulation bug
authorAng Way Chuang <wcang79@gmail.com>
Thu, 27 May 2010 05:02:09 +0000 (02:02 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:21:26 +0000 (10:21 -0700)
commit65019a1c668d1dbcc4c6bdcdb7bb66d8ea714752
tree9ac05a6ee3a46bf8dbf5e09a19b07dd87893b2b1
parentac633f17d4a5030d5924c1a85bbcde1ad42c3998
V4L/DVB: dvb-core: Fix ULE decapsulation bug

commit 5c331fc8c19e181bffab46e9d18e1637cdc47170 upstream.

Fix ULE decapsulation bug when less than 4 bytes of ULE SNDU is packed
into the remaining bytes of a MPEG2-TS frame

ULE (Unidirectional Lightweight Encapsulation RFC 4326) decapsulation
code has a bug that incorrectly treats ULE SNDU packed into the
remaining 2 or 3 bytes of a MPEG2-TS frame as having invalid pointer
field on the subsequent MPEG2-TS frame.

Signed-off-by: Ang Way Chuang <wcang@nav6.org>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/dvb/dvb-core/dvb_net.c