From: Sven Eckelmann batadv_tt_local_unhash_pending() removes the entry via batadv_tt_local_unhash() and therefore inherits its requirements. But its kernel-doc only asks for the hash bucket list_lock and the flags_lock. Sync it with the kernel-doc of batadv_tt_local_unhash(): the caller must have checked that the entry is still part of the local table and has to drop the reference of the hash after it released the flags_lock. Reported-by: Sashiko Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123171827.3294525-2-sw%40simonwunderlich.de?part=12 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/translation-table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index b6749fed3a16..8f39d21c351b 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -4644,10 +4644,10 @@ void batadv_tt_free(struct batadv_priv *bat_priv) * it. * * The caller must hold the hash bucket list_lock and the flags_lock of the - * entry. + * entry. It must have checked that the entry is still part of the local table. * * Return: true if the entry was unhashed and the caller has to drop the - * reference of the hash, false otherwise. + * reference of the hash after it released the flags_lock, false otherwise. */ static bool batadv_tt_local_unhash_pending(struct batadv_priv *bat_priv, -- 2.47.3