]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: batman-adv: don't have interrupts disabled while sending.
authorAndrew Lunn <andrew@lunn.ch>
Mon, 22 Mar 2010 21:46:13 +0000 (22:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:21:59 +0000 (11:21 -0700)
commit5b1599198c5992446e1e39962e83d504d72e0c18
tree7a38a300a46d43b61368b2d11648d3cfefef9bfb
parent100cd68085ad42f30b8591ba1eeb3dbe9c478838
Staging: batman-adv: don't have interrupts disabled while sending.

commit 107c32fe68f0b64acb7edd31d44d79b87c7fa8b4 upstream.

send_vis_packets() would disable interrupts before calling
dev_queue_xmit() which resulting in a backtrace in local_bh_enable().
Fix this by using kref on the vis_info object so that we can call
send_vis_packets() without holding vis_hash_lock. vis_hash_lock also
used to protect recv_list, so we now need a new lock to protect that
instead of vis_hash_lock.

Also a few checkpatch cleanups.

Reported-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/vis.c
drivers/staging/batman-adv/vis.h