batman-adv: Move soft-interface initialization to ndo_init
authorSven Eckelmann <sven@narfation.org>
Mon, 11 Feb 2013 09:10:22 +0000 (17:10 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 27 Mar 2013 09:27:31 +0000 (10:27 +0100)
commit37130293fd50918c5498bafafd18735a24229cb9
tree04bd6194d9ffd990f54b55b81fde4ad133c53574
parente6a0b495ffee1301c239da49818008e7de3c2ae1
batman-adv: Move soft-interface initialization to ndo_init

The initialization of an net_device object should be done in the
init/constructor function and not from the outside after the register_netdevice
was done to avoid race conditions.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c