diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-12-14 11:51:44 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-12-14 11:51:44 -0500 |
commit | a89aa29075aeffa158a51f5ff6679f9743275e59 (patch) | |
tree | ad998268a5dc34a2673a58c9345c097bce95847f | |
parent | 2bf10f4704af48d1f3b0d403ef9dc13114a8afca (diff) | |
download | mediapointer-dvb-s2-a89aa29075aeffa158a51f5ff6679f9743275e59.tar.gz mediapointer-dvb-s2-a89aa29075aeffa158a51f5ff6679f9743275e59.tar.bz2 |
dvb-core: fix bug in CRC-32 checking during ULE decapsulation on 64-bit systems
From: Ang Way Chuang <wcang@nrg.cs.usm.my>
CRC-32 checking during ULE decapsulation always failed on x86_64 systems due
to the size of a variable used to store CRC. This bug was discovered on
Fedora Core 6 with kernel-2.6.18-1.2849. The i686 counterpart has no such
problem. This patch has been tested on 64-bit system as well as 32-bit system.
Signed-off-by: Ang Way Chuang <wcang@nrg.cs.usm.my>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c index eb666e1e0..580fb1b06 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c @@ -611,7 +611,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len ) { &utype, sizeof utype }, { priv->ule_skb->data, priv->ule_skb->len - 4 } }; - unsigned long ule_crc = ~0L, expected_crc; + u32 ule_crc = ~0L, expected_crc; if (priv->ule_dbit) { /* Set D-bit for CRC32 verification, * if it was set originally. */ |