diff options
| author | linke li <[email protected]> | 2024-04-03 02:54:00 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-04-04 13:46:52 +0000 |
| commit | 04172043bd218dbbfc0c13bd4630142eb3f027cb (patch) | |
| tree | de9673c692bd5f7ea73fe6a83381714aa7772ff8 /tools/net/ynl/lib/ynl.py | |
| parent | tg3: Remove residual error handling in tg3_suspend (diff) | |
| download | kernel-04172043bd218dbbfc0c13bd4630142eb3f027cb.tar.gz kernel-04172043bd218dbbfc0c13bd4630142eb3f027cb.zip | |
net: ethernet: mtk_eth_soc: Reuse value using READ_ONCE instead of re-rereading it
In mtk_flow_entry_update_l2, the hwe->ib1 is read using READ_ONCE at the
beginning of the function, checked, and then re-read from hwe->ib1,
may void all guarantees of the checks. Reuse the value that was read by
READ_ONCE to ensure the consistency of the ib1 throughout the function.
Signed-off-by: linke li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions
