summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-06-03 11:47:53 +0300
committerSven Eckelmann <sven@narfation.org>2026-06-05 10:12:07 +0300
commitbb9e48e32d31d3cf12176da81334f345792ac96b (patch)
treeee21e7554ceb7a5ed833c6cb3679cbaeca569c87
parented497f64a617b0ecdc751c57f296bb7dc4b435c4 (diff)
downloadlinux-bb9e48e32d31d3cf12176da81334f345792ac96b.tar.xz
batman-adv: document cleanup of batadv_wifi_net_devices entries
It doesn't seem to be obvious how the entries from the batadv_wifi_net_devices rhashtable are getting removed before the actual rhashtable is destroyed. Document the idea behind the process and which steps are involved. Signed-off-by: Sven Eckelmann <sven@narfation.org>
-rw-r--r--net/batman-adv/hard-interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index 04b227ec8052..e2c85bd8dbb5 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -1185,5 +1185,9 @@ int __init batadv_wifi_net_devices_init(void)
*/
void batadv_wifi_net_devices_deinit(void)
{
+ /* just destroy table. entries should have been removed by
+ * unregister_netdevice_notifier() and the corresponding
+ * NETDEV_UNREGISTER events
+ */
rhashtable_destroy(&batadv_wifi_net_devices);
}