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:
db434ac
)
ipv6: Fix BUG when disabled ipv6 module is unloaded
author
John Dykstra
<
[email protected]
>
Wed, 11 Mar 2009 16:22:51 +0000
(09:22 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 11 Mar 2009 16:22:51 +0000
(09:22 -0700)
Do not try to "uninitialize" ipv6 if its initialization had been skipped
because module parameter disable=1 had been specified.
Reported-by: Thomas Backlund <
[email protected]
>
Signed-off-by: John Dykstra <
[email protected]
>
Acked-by: Brian Haley <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/af_inet6.c
patch
|
blob
|
history
diff --git
a/net/ipv6/af_inet6.c
b/net/ipv6/af_inet6.c
index da944eca2ca654423f4f00405069a58914fe81e0..9c8309ed35cf32351517af43ad647f16442cd9e9 100644
(file)
--- a/
net/ipv6/af_inet6.c
+++ b/
net/ipv6/af_inet6.c
@@
-1192,6
+1192,9
@@
module_init(inet6_init);
static void __exit inet6_exit(void)
{
+ if (disable_ipv6)
+ return;
+
/* First of all disallow new sockets creation. */
sock_unregister(PF_INET6);
/* Disallow any further netlink messages */