diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-06-10 06:55:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-12 01:02:00 +0200 |
commit | 06866bf5c5ad8989119a145fdb54a9fbcafa702d (patch) | |
tree | b32a47e298bf071ecc5f63d6f0d1fcdd902a3ae8 /drivers/net/dl2k.c | |
parent | NET: am79c961: fix assembler warnings (diff) | |
download | linux-06866bf5c5ad8989119a145fdb54a9fbcafa702d.tar.xz linux-06866bf5c5ad8989119a145fdb54a9fbcafa702d.zip |
dl2k: EEPROM CRC calculation wrong endianess on bigendian machine
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dl2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c index c445457b66d5..23179dbcedd2 100644 --- a/drivers/net/dl2k.c +++ b/drivers/net/dl2k.c @@ -346,7 +346,7 @@ parse_eeprom (struct net_device *dev) if (np->pdev->vendor == PCI_VENDOR_ID_DLINK) { /* D-Link Only */ /* Check CRC */ crc = ~ether_crc_le (256 - 4, sromdata); - if (psrom->crc != crc) { + if (psrom->crc != cpu_to_le32(crc)) { printk (KERN_ERR "%s: EEPROM data CRC error.\n", dev->name); return -1; |