mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ipv6: Fix BUG when disabled ipv6 module is unloaded
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]>
This commit is contained in:
parent
db434ac6bf
commit
ff8cf9a938
1 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue