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

mac802154: 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 got through appropriate helpers.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
659f4e02 47ce5f1e

+1 -1
+1 -1
net/mac802154/iface.c
··· 129 129 if (!ieee802154_is_valid_extended_unicast_addr(extended_addr)) 130 130 return -EINVAL; 131 131 132 - memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); 132 + dev_addr_set(dev, addr->sa_data); 133 133 sdata->wpan_dev.extended_addr = extended_addr; 134 134 135 135 /* update lowpan interface mac address when