[PATCH] dvb: dst: ASN.1 length field Fix
authorRaymond Mantchala <raymond.mantchala@streamvision.ft>
Wed, 9 Nov 2005 05:35:17 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:02 +0000 (07:56 -0800)
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>
drivers/media/dvb/bt8xx/dst_ca.c

index 6776a592045f36d7468d18baedffc32b5740bfeb..8a8a3333cb8f71fd72e1fcced2d5d815c1b7b14e 100644 (file)
@@ -328,7 +328,8 @@ u32 asn_1_decode(u8 *asn_1_array)
        } else {
                word_count = length_field & 0x7f;
                for (count = 0; count < word_count; count++) {
-                       length = (length | asn_1_array[count + 1]) << 8;
+                       length = length  << 8;
+                       length += asn_1_array[count + 1];
                        dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length);
                }
        }