]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: fix oops after tunnel module unload
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Sun, 31 Jul 2005 00:46:44 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Jul 2005 00:46:44 +0000 (17:46 -0700)
commit25b8f9726eb7fc418ec850f1b883cb808c6e9b68
tree3282b763dbc363202a328c473c47a8cad954687e
parentd239a1fd1214dffd3c8a7fe9bc79cfde2e57dcfb
[NET]: fix oops after tunnel module unload

Tunnel modules used to obtain module refcount each time when
some tunnel was created, which meaned that tunnel could be unloaded
only after all the tunnels are deleted.

Since killing old MOD_*_USE_COUNT macros this protection has gone.
It is possible to return it back as module_get/put, but it looks
more natural and practically useful to force destruction of all
the child tunnels on module unload.

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/sit.c