aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2022-10-27 13:24:30 +0200
committerJakub Kicinski <[email protected]>2022-10-27 10:27:53 -0700
commitef3556ee16c68735ec69bd08df41d1cd83b14ad3 (patch)
tree69a3aac5d6c4bd90b17b881a5aaf8153f196f811 /lib/mpi/mpi-sub-ui.c
parentbc520f5e251e5b3ddc3a1b728f00732d720011e2 (diff)
net: broadcom: bcm4908_enet: update TX stats after actual transmission
Queueing packets doesn't guarantee their transmission. Update TX stats after hardware confirms consuming submitted data. This also fixes a possible race and NULL dereference. bcm4908_enet_start_xmit() could try to access skb after freeing it in the bcm4908_enet_poll_tx(). Reported-by: Florian Fainelli <[email protected]> Fixes: 4feffeadbcb2e ("net: broadcom: bcm4908enet: add BCM4908 controller driver") Signed-off-by: Rafał Miłecki <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions