projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c8a44
)
Staging: batman-adv: Don't call free_netdev twice
author
Sven Eckelmann
<
[email protected]
>
Sat, 22 May 2010 15:48:46 +0000
(17:48 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 4 Jun 2010 20:38:56 +0000
(13:38 -0700)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/batman-adv/main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/batman-adv/main.c
b/drivers/staging/batman-adv/main.c
index 50a66b42d476e200113b4438e3910ee9ae7a4b0b..74c70d589a932d1d42ed249d3b9b04c0558d276b 100644
(file)
--- a/
drivers/staging/batman-adv/main.c
+++ b/
drivers/staging/batman-adv/main.c
@@
-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;