Message ID | 20211122203225.6733-1-gerhard@engleder-embedded.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 75e47206512bf98ad3d5cd4ef18f3d92b9050a45 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] tsnep: Fix set MAC address | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Mon, 22 Nov 2021 21:32:25 +0100 you wrote: > From: Gerhard Engleder <gerhard@engleder-embedded.com> > > Commit 4dfb9982644b ("tsn: Fix build.") fixed compilation with const > dev_addr. In tsnep_netdev_set_mac_address() the call of ether_addr_copy() > was replaced with dev_set_mac_address(), which calls > ndo_set_mac_address(). This results in an endless recursive loop because > ndo_set_mac_address is set to tsnep_netdev_set_mac_address. > > [...] Here is the summary with links: - [net-next] tsnep: Fix set MAC address https://git.kernel.org/netdev/net-next/c/75e47206512b You are awesome, thank you!
diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index 6a7feb24589a..8333313dd706 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -1004,7 +1004,7 @@ static int tsnep_netdev_set_mac_address(struct net_device *netdev, void *addr) retval = eth_prepare_mac_addr_change(netdev, sock_addr); if (retval) return retval; - dev_set_mac_address(netdev, sock_addr, NULL); + eth_hw_addr_set(netdev, sock_addr->sa_data); tsnep_mac_set_address(adapter, sock_addr->sa_data); return 0;