Staging: batman-adv: Always protect list_for_each_entry_rcu with RCU
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 18 Sep 2010 19:01:16 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 23:29:49 +0000 (16:29 -0700)
commit2250840111b362a30e35ce52770bde3692e402b2
tree29f56d929f447d7351b771b23f507bb77495aa8c
parentaf2ac7bfec4176cad5e04402d116b5242d759bf8
Staging: batman-adv: Always protect list_for_each_entry_rcu with RCU

receive_bat_packet is not called with rcu_read_lock so we must ensure by
ourself that we protect list_for_each_entry_rcu using the correct RCU
locks.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/routing.c