Author: marek Date: 2010-05-21 07:29:55 +0200 (Fri, 21 May 2010) New Revision: 1666
Modified: trunk/batman-adv-kernelland/main.c Log: 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
Modified: trunk/batman-adv-kernelland/main.c =================================================================== --- trunk/batman-adv-kernelland/main.c 2010-05-21 05:29:54 UTC (rev 1665) +++ trunk/batman-adv-kernelland/main.c 2010-05-21 05:29:55 UTC (rev 1666) @@ -121,6 +121,9 @@
unreg_soft_device: unregister_netdev(soft_device); + soft_device = NULL; + return -ENOMEM; + free_soft_device: free_netdev(soft_device); soft_device = NULL;