Skip to contentSkip to conversation

dvb: dst: ASN.1 length field Fix

PATCH In review Michael Krufky 1 participant 1 message Nov 1, 2005 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 10/37 dvb: dst: ASN.1 length field Fix

From: Raymond Mantchala <[email protected]>

ASN.1 length field Fix

 drivers/media/dvb/bt8xx/dst_ca.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/dvb/bt8xx/dst_ca.c +2 -1
@@ -328,7 +328,8 @@
 	} 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);
 		}
 	}