batman-adv: Add lockdep assert for container_list_lock
authorSven Eckelmann <sven@narfation.org>
Sun, 20 Dec 2015 08:04:03 +0000 (09:04 +0100)
committerAntonio Quartulli <a@unstable.cc>
Wed, 10 Feb 2016 15:23:58 +0000 (23:23 +0800)
commitdded0692247c76f892adee3ba6878ff5f394e210
treecd969de6f1411add186c42362cabd7869645f61a
parent81f02683504dc5590204c3fa059eac86fbfa0927
batman-adv: Add lockdep assert for container_list_lock

The batadv_tvlv_container* functions state in their kernel-doc that they
require tvlv.container_list_lock. Add an assert to automatically detect
when this might have been ignored by the caller.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/main.c