Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mpt fusion: use dev_addr_set()

Commit 406f42fa0d3c ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it go through appropriate helpers.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
e0b4f1cd aaaaa137

+1 -1
+1 -1
drivers/message/fusion/mptlan.c
··· 1350 1350 HWaddr[5] = a[0]; 1351 1351 1352 1352 dev->addr_len = FC_ALEN; 1353 - memcpy(dev->dev_addr, HWaddr, FC_ALEN); 1353 + dev_addr_set(dev, HWaddr); 1354 1354 memset(dev->broadcast, 0xff, FC_ALEN); 1355 1355 1356 1356 /* The Tx queue is 127 deep on the 909.