Handle recursive situations a bit more robustly by adding a second reference
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 17 Jan 2004 03:24:50 +0000 (03:24 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 17 Jan 2004 03:24:50 +0000 (03:24 +0000)
commite7a2d40362352344eff1c4f395caf0a735e00a3e
treea69740472d7a6753480b98f73a2efa8f48497536
parent5e658043495138909f42785ab4415e2e1eb78fd6
Handle recursive situations a bit more robustly by adding a second reference
to the linker_file_t during linker_file_unload(), and not looking up the
'next' module in the unload loop until after unloading (but not yet
releasing) the current module.
sys/kern/kern_linker.c
sys/kern/kern_module.c
sys/sys/module.h