netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3] batman-adv: Fix double-hold of meshif when getting enabled
@ 2025-04-09  7:35 Sven Eckelmann
  2025-04-10 10:13 ` Paolo Abeni
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Eckelmann @ 2025-04-09  7:35 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Sven Eckelmann

It was originally meant to replace the dev_hold with netdev_hold. But this
was missed in this place and thus there was an imbalance when trying to
remove the interfaces.

Fixes: 00b35530811f ("batman-adv: adopt netdev_hold() / netdev_put()")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 net/batman-adv/hard-interface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index f145f9662653..7cd4bdcee439 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -725,7 +725,6 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
 
 	kref_get(&hard_iface->refcount);
 
-	dev_hold(mesh_iface);
 	netdev_hold(mesh_iface, &hard_iface->meshif_dev_tracker, GFP_ATOMIC);
 	hard_iface->mesh_iface = mesh_iface;
 	bat_priv = netdev_priv(hard_iface->mesh_iface);
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-10 18:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09  7:35 [PATCH net v3] batman-adv: Fix double-hold of meshif when getting enabled Sven Eckelmann
2025-04-10 10:13 ` Paolo Abeni
2025-04-10 11:20   ` Eric Dumazet
2025-04-10 12:42     ` Simon Wunderlich
2025-04-10 13:08   ` Sven Eckelmann
2025-04-10 13:31     ` Eric Dumazet
2025-04-10 18:57       ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).