Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cff0943 authored by Mattias Walström's avatar Mattias Walström Committed by David S. Miller
Browse files

FEC: Fix kernel panic in fec_set_mac_address.



Fix memory corruption that sometimes result in kernel panic.

Signed-off-by: default avatarMattias Walström <mattias@vmlinux.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f935aa9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1653,7 +1653,7 @@ fec_set_mac_address(struct net_device *dev, void *p)
		(dev->dev_addr[1] << 16) | (dev->dev_addr[0] << 24),
		fep->hwp + FEC_ADDR_LOW);
	writel((dev->dev_addr[5] << 16) | (dev->dev_addr[4] << 24),
		fep + FEC_ADDR_HIGH);
		fep->hwp + FEC_ADDR_HIGH);
	return 0;
}