]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: batman-adv: unify orig_hash_lock spinlock handling to avoid deadlocks
authorMarek Lindner <lindner_marek@yahoo.de>
Mon, 9 Aug 2010 21:56:39 +0000 (23:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 01:15:36 +0000 (18:15 -0700)
commit9abc10238e1df7ce81c58a441f65efd5e905b9e8
treefded6a1a42823424233f41ecd5f92d8f99f47c78
parent466122df80e447883588ffcf9d21b88152934819
Staging: batman-adv: unify orig_hash_lock spinlock handling to avoid deadlocks

The orig_hash_lock spinlock always has to be locked with IRQs being
disabled to avoid deadlocks between code that is being executed in
IRQ context and code that is being executed in non-IRQ context.

Reported-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/originator.c