diff options
author | Martin Hundebøll <martin@hundeboll.net> | 2014-11-11 16:22:23 +0100 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-01-06 11:05:12 +0100 |
commit | f44d54077a69b1c990aeef49cf9b813fb274cfee (patch) | |
tree | 357cf9a006f852e23d21f41d23ac61361e30cfc4 /net | |
parent | batman-adv: fix delayed foreign originator recognition (diff) | |
download | linux-f44d54077a69b1c990aeef49cf9b813fb274cfee.tar.xz linux-f44d54077a69b1c990aeef49cf9b813fb274cfee.zip |
batman-adv: fix lock class for decoding hash in network-coding.c
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: 612d2b4fe0a1ff2f8389462a6f8be34e54124c05
("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>
Diffstat (limited to 'net')
-rw-r--r-- | net/batman-adv/network-coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c index 8d04d174669e..fab47f1f3ef9 100644 --- a/net/batman-adv/network-coding.c +++ b/net/batman-adv/network-coding.c @@ -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); |