projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f777737
)
dl2k: EEPROM CRC calculation wrong endianess on bigendian machine
author
Daniel Hellstrom
<daniel@gaisler.com>
Fri, 10 Jun 2011 04:55:16 +0000
(
04:55
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 11 Jun 2011 23:02:00 +0000
(16:02 -0700)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dl2k.c
patch
|
blob
|
history
diff --git
a/drivers/net/dl2k.c
b/drivers/net/dl2k.c
index c445457b66d53df856564a2d88895680249f49bf..23179dbcedd260ccd6b401f21c859bbdeb753675 100644
(file)
--- 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 != c
rc
) {
+ if (psrom->crc != c
pu_to_le32(crc)
) {
printk (KERN_ERR "%s: EEPROM data CRC error.\n",
dev->name);
return -1;