summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-03-08 11:29:04 +0100
committerDavid S. Miller <davem@davemloft.net>2022-03-09 14:59:14 +0000
commit0dbdf819f4c12337fbe5c8551d97f312a44a7d87 (patch)
tree449cc2f18982cbadc52bdff6f6696bff457e7605 /net/lapb/lapb_in.c
parent2c9ec169f70bb13f71cf91cf018680e6e4fc8ce6 (diff)
net: lan966x: Add spinlock for frame transmission from CPU.
The registers used to inject a frame to one of the ports is shared between all the net devices. Therefore, there can be race conditions for accessing the registers when two processes send frames at the same time on different ports. To fix this, add a spinlock around the function 'lan966x_port_ifh_xmit()'. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions