V4L/DVB: dvb-core: Fix ULE decapsulation bug
commit2213a00b8f18ea821b7b90227810723c69266916
authorAng Way Chuang <wcang79@gmail.com>
Thu, 27 May 2010 05:02:09 +0000 (27 02:02 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:14 +0000 (2 10:30 -0700)
tree9468f6af2d7d0e50b817524a9cdcf9432101677e
parentab8434aada60281129fd4064b2d66a719fc9b7aa
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