mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:06:43 +07:00
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>
This commit is contained in:
parent
20c8a44b7c
commit
3d9b235893
@ -128,6 +128,9 @@ int init_module(void)
|
||||
|
||||
unreg_soft_device:
|
||||
unregister_netdev(soft_device);
|
||||
soft_device = NULL;
|
||||
return -ENOMEM;
|
||||
|
||||
free_soft_device:
|
||||
free_netdev(soft_device);
|
||||
soft_device = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user