net: bcmgenet: synchronize use of bcmgenet_set_rx_mode()
authorDoug Berger <opendmb@gmail.com>
Thu, 25 Apr 2024 22:27:20 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:51:04 +0000 (11:51 +0200)
commit1cbe6d8999db7704d44e653abe84077df9d03e82
tree1804c3f4fae075c8a4d91eec1edeeb4df76a108f
parent66116556076f0b96bc1aa9844008c743c8c67684
net: bcmgenet: synchronize use of bcmgenet_set_rx_mode()

commit 2dbe5f19368caae63b1f59f5bc2af78c7d522b3a upstream.

The ndo_set_rx_mode function is synchronized with the
netif_addr_lock spinlock and BHs disabled. Since this
function is also invoked directly from the driver the
same synchronization should be applied.

Fixes: 72f96347628e ("net: bcmgenet: set Rx mode before starting netif")
Cc: stable@vger.kernel.org
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c