]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7bc6648d89ce35d44eb3200456ebb569afdc982
treef5f05095d17bf618eed08fc79ee969b48937dc59
parente0ec848fa9b4ad18ea2646df8baa929714c82cf6
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