]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv6/sit.c
[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)
commitdb44575f6fd55df6ff67ddd21f7ad5be5a741136
tree3282b763dbc363202a328c473c47a8cad954687e
parent1f494c0e040b001cf844280910d04ba7ebdc2898
[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