batman-adv: Initialize lockdep class keys for hashes
authorSven Eckelmann <sven@narfation.org>
Thu, 29 Mar 2012 10:38:20 +0000 (12:38 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:00:57 +0000 (18:00 +0200)
commit5d52dad27a08d2c8851acb12b041088ec07881dd
treef5f05095d17bf618eed08fc79ee969b48937dc59
parentd2b6cc8e460494251442a877fcbc150faa175b4f
batman-adv: Initialize lockdep class keys for hashes

The hash for claim and backbone hash in the bridge loop avoidance code receive
the same key because they are getting initialized by hash_new with the same
key. Lockdep will create a backtrace when they are used recursively. This can
be avoided by reinitializing the key directly after the hash_new.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/hash.c
net/batman-adv/hash.h