diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-14 20:19:48 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-14 20:19:48 +0000 |
commit | 16323aa644eae99aa146991fbeb1d2945f59f55c (patch) | |
tree | 110c4e7bbb509a3f3aeeb276df8928cad1e5ba01 /xpp/xbus-core.c | |
parent | 7b2bfe65370b353eca0ab6b288c27f06377ea8dc (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.c | 4 |
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); |