Skip to content

Commit

Permalink
batman-adv: fix lock class for decoding hash in network-coding.c
Browse files Browse the repository at this point in the history
batadv_has_set_lock_class() is called with the wrong hash table as first
argument (probably due to a copy-paste error), which leads to false
positives when running with lockdep.

Introduced-by: 612d2b4
("batman-adv: network coding - save overheard and tx packets for decoding")

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
  • Loading branch information
Martin Hundebøll authored and Antonio Quartulli committed Jan 6, 2015
1 parent 2c667a3 commit f44d540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/network-coding.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int batadv_nc_mesh_init(struct batadv_priv *bat_priv)
if (!bat_priv->nc.decoding_hash)
goto err;

batadv_hash_set_lock_class(bat_priv->nc.coding_hash,
batadv_hash_set_lock_class(bat_priv->nc.decoding_hash,
&batadv_nc_decoding_hash_lock_class_key);

INIT_DELAYED_WORK(&bat_priv->nc.work, batadv_nc_worker);
Expand Down

0 comments on commit f44d540

Please sign in to comment.