]> git.baikalelectronics.ru Git - kernel.git/commit
i825xx: sni_82596: use eth_hw_addr_set()
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 15 Mar 2023 13:41:17 +0000 (14:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:50 +0000 (13:33 +0100)
commitbb50055ab49e5faf938fa7c6409ae26fd576ac57
tree4783cdbf6fc9f2a68da83312fc843e3f6f5a5fcf
parent1b39c18ca0cb3819442b400547d712179d45f3da
i825xx: sni_82596: use eth_hw_addr_set()

[ Upstream commit 35e809dbd61106b1de959bb470c08c94fb369303 ]

netdev->dev_addr is now const, we can't write to it directly.
Copy scrambled mac address octects into an array then eth_hw_addr_set().

Fixes: 428867d3387c ("net: constify netdev->dev_addr")
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://lore.kernel.org/r/20230315134117.79511-1-tsbogend@alpha.franken.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/i825xx/sni_82596.c