]> git.dujemihanovic.xyz Git - linux.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2024 05:24:22 +0000 (06:24 +0100)
commit2dbe5f19368caae63b1f59f5bc2af78c7d522b3a
treecbfb2ca2486c1775824d2ca716fc7dce9f1a900b
parentd85cf67a339685beae1d0aee27b7f61da95455be
net: bcmgenet: synchronize use of bcmgenet_set_rx_mode()

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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c