]> 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>
Thu, 26 Aug 2010 23:46:22 +0000 (16:46 -0700)
commit37b419b202eaebc97c05e598895ea16cbde112a7
tree4d99a2419f561e1241a566397648ed2b71fc1199
parentcbdd4c098ba34731ceec62c47c36ec8e3d0d252e
Staging: batman-adv: unify orig_hash_lock spinlock handling to avoid deadlocks

commit 9abc10238e1df7ce81c58a441f65efd5e905b9e8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/originator.c