]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/batman-adv/vis.c
batman-adv: Initialize lockdep class keys for hashes
[karo-tx-linux.git] / net / batman-adv / vis.c
index 0f65a9de5f749719b9b778cd8c989680b0b1eb4d..60eb9b7ca8d10643fc7c807fc36d8b8632312c2d 100644 (file)
@@ -28,6 +28,9 @@
 
 #define BATADV_MAX_VIS_PACKET_SIZE 1000
 
+/* hash class keys */
+static struct lock_class_key batadv_vis_hash_lock_class_key;
+
 static void batadv_start_vis_timer(struct batadv_priv *bat_priv);
 
 /* free the info */
@@ -852,6 +855,9 @@ int batadv_vis_init(struct batadv_priv *bat_priv)
                goto err;
        }
 
+       batadv_hash_set_lock_class(bat_priv->vis.hash,
+                                  &batadv_vis_hash_lock_class_key);
+
        bat_priv->vis.my_info = kmalloc(BATADV_MAX_VIS_PACKET_SIZE, GFP_ATOMIC);
        if (!bat_priv->vis.my_info)
                goto err;