* [PATCH 10/37] dvb: dst: ASN.1 length field Fix
@ 2005-11-01 8:13 Michael Krufky
0 siblings, 0 replies; only message in thread
From: Michael Krufky @ 2005-11-01 8:13 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, linux-dvb-maintainer
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: 2373.patch --]
[-- Type: text/x-patch, Size: 774 bytes --]
From: Raymond Mantchala <raymond.mantchala@streamvision.ft>
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>
drivers/media/dvb/bt8xx/dst_ca.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.14-git3.orig/drivers/media/dvb/bt8xx/dst_ca.c
+++ linux-2.6.14-git3/drivers/media/dvb/bt8xx/dst_ca.c
@@ -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);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-01 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 8:13 [PATCH 10/37] dvb: dst: ASN.1 length field Fix Michael Krufky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox