]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Initialize lockdep class keys for hashes
authorAntonio Quartulli <ordex@autistici.org>
Sat, 10 Nov 2012 10:00:32 +0000 (11:00 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 12 Jan 2013 10:58:21 +0000 (20:58 +1000)
commit212e2a1efe649f46fae0836dc4c2b4fd6addced2
tree407f9281efb3f42c83773b07c4aae48cb5041937
parent816131af8c0f871655c5b701ff9f299e7bddb705
batman-adv: Initialize lockdep class keys for hashes

Different hashes have the same class key because they get
initialised with the same one. For this reason lockdep can create
false warning when they are used recursively.

Re-initialise the key for each hash after the invocation to hash_new()
to avoid this problem.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Tested-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/originator.c
net/batman-adv/translation-table.c
net/batman-adv/vis.c