aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <[email protected]>2021-09-07 20:29:40 +0900
committerDavid S. Miller <[email protected]>2021-09-07 14:02:02 +0100
commit0341d5e3d1ee2a36dd5a49b5bef2ce4ad1cfa6b4 (patch)
tree053272b5cf133ddfdff5167a8b951b1c1c5cdb90 /tools/perf/util/trace-event-scripting.c
parentbbef56d861f103058e387ad5354b4083b9892a7c (diff)
net: renesas: sh_eth: Fix freeing wrong tx descriptor
The cur_tx counter must be incremented after TACT bit of txdesc->status was set. However, a CPU is possible to reorder instructions and/or memory accesses between cur_tx and txdesc->status. And then, if TX interrupt happened at such a timing, the sh_eth_tx_free() may free the descriptor wrongly. So, add wmb() before cur_tx++. Otherwise NETDEV WATCHDOG timeout is possible to happen. Fixes: 86a74ff21a7a ("net: sh_eth: add support for Renesas SuperH Ethernet") Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions