netxen: fix endianness read mac address
In netxen_read_mac_addr, mac_addr should be declared u64 instead of __le64, used by host only. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
71fceff0ea
commit
a03d245199
@@ -432,7 +432,7 @@ netxen_read_mac_addr(struct netxen_adapter *adapter)
|
||||
{
|
||||
int i;
|
||||
unsigned char *p;
|
||||
__le64 mac_addr;
|
||||
u64 mac_addr;
|
||||
struct net_device *netdev = adapter->netdev;
|
||||
struct pci_dev *pdev = adapter->pdev;
|
||||
|
||||
|
Reference in New Issue
Block a user