diff options
Diffstat (limited to 'net/batman-adv/vis.c')
-rw-r--r-- | net/batman-adv/vis.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/batman-adv/vis.c b/net/batman-adv/vis.c index 0f65a9de5f74..60eb9b7ca8d1 100644 --- a/net/batman-adv/vis.c +++ b/net/batman-adv/vis.c | |||
@@ -28,6 +28,9 @@ | |||
28 | 28 | ||
29 | #define BATADV_MAX_VIS_PACKET_SIZE 1000 | 29 | #define BATADV_MAX_VIS_PACKET_SIZE 1000 |
30 | 30 | ||
31 | /* hash class keys */ | ||
32 | static struct lock_class_key batadv_vis_hash_lock_class_key; | ||
33 | |||
31 | static void batadv_start_vis_timer(struct batadv_priv *bat_priv); | 34 | static void batadv_start_vis_timer(struct batadv_priv *bat_priv); |
32 | 35 | ||
33 | /* free the info */ | 36 | /* free the info */ |
@@ -852,6 +855,9 @@ int batadv_vis_init(struct batadv_priv *bat_priv) | |||
852 | goto err; | 855 | goto err; |
853 | } | 856 | } |
854 | 857 | ||
858 | batadv_hash_set_lock_class(bat_priv->vis.hash, | ||
859 | &batadv_vis_hash_lock_class_key); | ||
860 | |||
855 | bat_priv->vis.my_info = kmalloc(BATADV_MAX_VIS_PACKET_SIZE, GFP_ATOMIC); | 861 | bat_priv->vis.my_info = kmalloc(BATADV_MAX_VIS_PACKET_SIZE, GFP_ATOMIC); |
856 | if (!bat_priv->vis.my_info) | 862 | if (!bat_priv->vis.my_info) |
857 | goto err; | 863 | goto err; |