From: Jakub Kicinski Date: Tue, 19 Oct 2021 16:36:05 +0000 (-0700) Subject: mac802154: use dev_addr_set() X-Git-Tag: v6.6.17~8953^2~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659f4e02f15aa0ab61555717978219f87505ff5a;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 323d3d2..3210dec 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -129,7 +129,7 @@ static int mac802154_wpan_mac_addr(struct net_device *dev, void *p) if (!ieee802154_is_valid_extended_unicast_addr(extended_addr)) return -EINVAL; - memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); + dev_addr_set(dev, addr->sa_data); sdata->wpan_dev.extended_addr = extended_addr; /* update lowpan interface mac address when