diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-21 06:12:07 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-22 10:16:03 -0700 |
commit | 1e9258c389ee58b34238abaa600c10270b081af8 (patch) | |
tree | 0ea5747e861089658493f52307515e3556ac8502 /drivers/net/fddi/defza.c | |
parent | 2674e7ea22ba0e22a2d1603bd51e0b8f6442a267 (diff) | |
download | linux-stable-1e9258c389ee58b34238abaa600c10270b081af8.tar.gz linux-stable-1e9258c389ee58b34238abaa600c10270b081af8.tar.bz2 linux-stable-1e9258c389ee58b34238abaa600c10270b081af8.zip |
fddi: defxx,defza: 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.
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/fddi/defza.c')
-rw-r--r-- | drivers/net/fddi/defza.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fddi/defza.c b/drivers/net/fddi/defza.c index 0de2c4552f5e..3a6b08eb5e1b 100644 --- a/drivers/net/fddi/defza.c +++ b/drivers/net/fddi/defza.c @@ -1380,7 +1380,7 @@ static int fza_probe(struct device *bdev) goto err_out_irq; fza_reads(&init->hw_addr, &hw_addr, sizeof(hw_addr)); - memcpy(dev->dev_addr, &hw_addr, FDDI_K_ALEN); + dev_addr_set(dev, &hw_addr); fza_reads(&init->rom_rev, &rom_rev, sizeof(rom_rev)); fza_reads(&init->fw_rev, &fw_rev, sizeof(fw_rev)); |