diff options
| author | 2026-01-20 00:07:37 +0800 | |
|---|---|---|
| committer | 2026-01-20 18:29:09 -0800 | |
| commit | 748a81c8ceda1fdbdcd0af595947422e810442aa (patch) | |
| tree | 26f43228e93529baf523010e2df407a1fac8582e /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | tools/net/ynl: Makefile's install target now installs ynltool (diff) | |
net: hns3: fix data race in hns3_fetch_stats
In hns3_fetch_stats(), ring statistics, protected by u64_stats_sync, are
read and accumulated in ignorance of possible u64_stats_fetch_retry()
events. These statistics are already accumulated by
hns3_ring_stats_update(). Fix this by reading them into a temporary
buffer first.
Fixes: b20d7fe51e0d ("net: hns3: add some statitics info to tx process")
Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20260119160759.1455950-1-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
