Staging: batman-adv: don't lock while sending packets
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Fri, 19 Feb 2010 15:18:05 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:43:02 +0000 (16:43 -0800)
commiteb50081d8fb76d5de9d65628d7f41977ece7044b
tree027e1ac8c400ad402a871e68df7ab00e04a292d4
parent0fce64362d4f2144586e3ffcff6f259bf8abc2f8
Staging: batman-adv: don't lock while sending packets

As in other parts of batman-adv, we should not lock while sending a packet but
keep the lock held for as short as possible. Additionally, we should check
whether the interface is active, otherwise batman_if->net_dev might not be
available ...

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Acked-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/device.c