summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/act8945a-regulator.c
diff options
context:
space:
mode:
authorRobert Hancock <robert.hancock@calian.com>2022-01-18 22:41:29 +0100
committerDavid S. Miller <davem@davemloft.net>2022-01-19 12:29:14 +0100
commit996defd7f8b5dafc1d480b7585c7c62437f80c3c (patch)
tree294b8b5cd72d1e18d73689817b12616ca1ba3fd4 /drivers/regulator/act8945a-regulator.c
parentnet: axienet: limit minimum TX ring size (diff)
downloadlinux-996defd7f8b5dafc1d480b7585c7c62437f80c3c.tar.xz
linux-996defd7f8b5dafc1d480b7585c7c62437f80c3c.zip
net: axienet: Fix TX ring slot available check
The check for whether a TX ring slot was available was incorrect, since a slot which had been loaded with transmit data but the device had not started transmitting would be treated as available, potentially causing non-transmitted slots to be overwritten. The control field in the descriptor should be checked, rather than the status field (which may only be updated when the device completes the entry). Fixes: 8a3b7a252dca9 ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver") Signed-off-by: Robert Hancock <robert.hancock@calian.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/regulator/act8945a-regulator.c')
0 files changed, 0 insertions, 0 deletions