]> Git Repo - linux.git/commit - .clang-format
inet: ping: use hlist_nulls rcu iterator during lookup
authorFlorian Westphal <[email protected]>
Tue, 29 Nov 2022 14:06:44 +0000 (15:06 +0100)
committerPaolo Abeni <[email protected]>
Thu, 1 Dec 2022 11:42:46 +0000 (12:42 +0100)
commitc25b7a7a565e5eeb2459b37583eea67942057511
tree595a7dbdbdd35175a524565921f95ea569cab9b2
parent9aff0ec5cba5b4ec4f199bbc6d0b7e1fedfa149e
inet: ping: use hlist_nulls rcu iterator during lookup

ping_lookup() does not acquire the table spinlock, so iteration should
use hlist_nulls_for_each_entry_rcu().

Spotted during code review.

Fixes: dbca1596bbb0 ("ping: convert to RCU lookups, get rid of rwlock")
Cc: Eric Dumazet <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
.clang-format
include/net/ping.h
net/ipv4/ping.c
This page took 0.05668 seconds and 4 git commands to generate.