summaryrefslogtreecommitdiff
path: root/xpp/xbus-core.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-14 20:19:48 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-14 20:19:48 +0000
commit16323aa644eae99aa146991fbeb1d2945f59f55c (patch)
tree110c4e7bbb509a3f3aeeb276df8928cad1e5ba01 /xpp/xbus-core.c
parent7b2bfe65370b353eca0ab6b288c27f06377ea8dc (diff)
NULLify pointers to /proc files after removing them (so anyone who
tries to access them afterwards causes Oops instead of unknown behaviour). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1230 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xbus-core.c')
-rw-r--r--xpp/xbus-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xpp/xbus-core.c b/xpp/xbus-core.c
index 5a85f8b..437ea5e 100644
--- a/xpp/xbus-core.c
+++ b/xpp/xbus-core.c
@@ -809,8 +809,10 @@ static void xbus_core_cleanup(void)
xpp_worker = NULL;
}
#ifdef CONFIG_PROC_FS
- if(proc_xbuses)
+ if(proc_xbuses) {
remove_proc_entry(PROC_XBUSES, xpp_proc_toplevel);
+ proc_xbuses = NULL;
+ }
#endif
if(packet_cache)
kmem_cache_destroy(packet_cache);