summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorDavid Yang <mmyangfl@gmail.com>2026-01-20 00:07:37 +0800
committerJakub Kicinski <kuba@kernel.org>2026-01-20 18:29:09 -0800
commit748a81c8ceda1fdbdcd0af595947422e810442aa (patch)
tree26f43228e93529baf523010e2df407a1fac8582e /scripts/patch-kernel
parenta917cd0a23fae160a85b0e8a0dd1d548c5d5242e (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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions