Staging: batman-adv: Don't call free_netdev twice
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 22 May 2010 15:48:46 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:56 +0000 (13:38 -0700)
commit3d9b2358930a3e5225b28ac1458236f3d667e368
treeda48e69df6088bc59aa792fbfbfee8b392cd1139
parent20c8a44b7cd5e56b62898a87f620b3a7269eb898
Staging: batman-adv: Don't call free_netdev twice

Free_netdev is registered as destructor in interface_setup for every
soft_device. This destructor is automatically called from
unregister_netdev and we must not call it again for the freed
net_device.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/main.c