V4L/DVB (13237): firedtv: length field corrupt in ca2host if length>127
authorHenrik Kurelid <henke@kurelid.se>
Sat, 3 Oct 2009 08:37:58 +0000 (05:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 7 Nov 2009 14:55:10 +0000 (12:55 -0200)
commitc94115ffc4d76089b26eee4d1cb56f1f6b631bd2
treeaff99dc71397d842795cda51e3e9ff7ae105216c
parent1f95725755ab67f3198df3b5bf7517f926f310ca
V4L/DVB (13237): firedtv: length field corrupt in ca2host if length>127

This solves a problem in firedtv that has become major for Swedish DVB-T
users the last month or so.  It will most likely solve issues seen by
other users as well.

If the length of an AVC message is greater than 127, the length field
should be encoded in LV mode instead of V mode. V mode can only be used
if the length is 127 or less. This patch ensures that the CA_PMT
message is always encoded in LV mode so PMT message of greater lengths
can be supported.

Signed-off-by: Henrik Kurelid <henrik@kurelid.se>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/firewire/firedtv-avc.c