Skip to contentSkip to conversation

batman-adv: Fix lockdep annotation of batadv_tlv_container_remove

PATCH Applied Sven Eckelmann 2 participants 2 messages Nov 3, 2015 – Nov 17, 2015 Batman advanced

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: Fix lockdep annotation of batadv_tlv_container_remove

The function handles tlv containers and not tlv handlers. Thus the lockdep_assert_held has to check for the container_list lock.

Fixes 5b95c427d187 ("batman-adv: Annotate deleting functions with external lock via lockdep")
---
 net/batman-adv/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/main.c +1 -1
index 2fa168a..c898853 100644
@@ -747,7 +747,7 @@ static u16 batadv_tvlv_container_list_size(struct batadv_priv *bat_priv)
 static void batadv_tvlv_container_remove(struct batadv_priv *bat_priv,
 					 struct batadv_tvlv_container *tvlv)
 {
-	lockdep_assert_held(&bat_priv->tvlv.handler_list_lock);
+	lockdep_assert_held(&bat_priv->tvlv.container_list_lock);
 
 	if (!tvlv)
 		return;
Signature · 1 line
2.6.2
#1 lore raw
Quoted 8 lines · On Tuesday, November 03, 2015 17:43:05 Sven Eckelmann wrote:

The function handles tlv containers and not tlv handlers. Thus the lockdep_assert_held has to check for the container_list lock.

Fixes 5b95c427d187 ("batman-adv: Annotate deleting functions with external

lock via lockdep") Signed-off-by: Sven Eckelmann <[email protected]>

---
 net/batman-adv/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision 41a559a.

Thanks,
Marek