summaryrefslogtreecommitdiff
path: root/xpp/xbus-core.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-14 19:17:45 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-07-14 19:17:45 +0000
commit5ac8b562340e6dc0c38f88ce86f9df50058bd032 (patch)
tree69f373f83fa36ee9d460437007e3b399b1fbeb8e /xpp/xbus-core.c
parent30c7570cfd3a736af725d82fd8988859602183b8 (diff)
NULLify pointers to /proc files after removing them (so anyone who tries to
access them afterwards causes iimmediate Oops instead of unknown behaviour). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1225 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);