diff options
author | Raymond Mantchala <raymond.mantchala@streamvision.ft> | 2005-11-09 00:35:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:02 -0500 |
commit | 93a14f15d35cd60742220995d3413d256ebde9ee (patch) | |
tree | da6fa97a552b21835d747c3e2a6d05cb69141b17 /drivers | |
parent | 2b70a2f55e249308c57879df5723d96406e12b27 (diff) |
[PATCH] dvb: dst: ASN.1 length field Fix
ASN.1 length field Fix
Signed-off-by: Raymond Mantchala <raymond.mantchala@streamvision.ft>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/bt8xx/dst_ca.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/dst_ca.c b/drivers/media/dvb/bt8xx/dst_ca.c index 6776a592045f..8a8a3333cb8f 100644 --- a/drivers/media/dvb/bt8xx/dst_ca.c +++ b/drivers/media/dvb/bt8xx/dst_ca.c | |||
@@ -328,7 +328,8 @@ u32 asn_1_decode(u8 *asn_1_array) | |||
328 | } else { | 328 | } else { |
329 | word_count = length_field & 0x7f; | 329 | word_count = length_field & 0x7f; |
330 | for (count = 0; count < word_count; count++) { | 330 | for (count = 0; count < word_count; count++) { |
331 | length = (length | asn_1_array[count + 1]) << 8; | 331 | length = length << 8; |
332 | length += asn_1_array[count + 1]; | ||
332 | dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length); | 333 | dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length); |
333 | } | 334 | } |
334 | } | 335 | } |