1
0
Fork 0

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: 2c72d655b0 ("batman-adv: Annotate deleting functions with external lock via lockdep")
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
steinar/wifi_calib_4_9_kernel
Sven Eckelmann 2015-11-03 19:20:34 +01:00 committed by Antonio Quartulli
parent 4a4d045eb2
commit 008a374487
1 changed files with 1 additions and 1 deletions

View File

@ -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;