summaryrefslogtreecommitdiffstats
path: root/Documentation/vm
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-07-14 21:40:38 +0200
committerJakub Kicinski <kuba@kernel.org>2022-07-18 20:00:00 -0700
commit99343cfa4f7560abf933fff7ab3ea58a6905c917 (patch)
tree18375374a10f5237e79fe26d7c8f1f1f29c254d5 /Documentation/vm
parent43243bb3195b0dc27741679471e23baed1efe98e (diff)
downloadlinux-99343cfa4f7560abf933fff7ab3ea58a6905c917.tar.bz2
net: lan966x: Fix usage of lan966x->mac_lock when entry is removed
To remove an entry to the MAC table, it is required first to setup the entry and then issue a command for the MAC to forget the entry. So if it happens for two threads to remove simultaneously an entry in MAC table then it would be a race condition. Fix this by using lan966x->mac_lock to protect the HW access. Fixes: e18aba8941b40 ("net: lan966x: add mactable support") Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/vm')
0 files changed, 0 insertions, 0 deletions