summaryrefslogtreecommitdiff
path: root/xpp/card_fxs.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/card_fxs.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/card_fxs.c')
-rw-r--r--xpp/card_fxs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/card_fxs.c b/xpp/card_fxs.c
index 1718849..094ed71 100644
--- a/xpp/card_fxs.c
+++ b/xpp/card_fxs.c
@@ -282,10 +282,12 @@ static void clean_proc(xbus_t *xbus, xpd_t *xpd)
DBG("Removing xpd SLIC file %s/%s\n", xbus->busname, xpd->xpdname);
priv->xpd_slic->data = NULL;
remove_proc_entry(PROC_SLIC_FNAME, xpd->proc_xpd_dir);
+ priv->xpd_slic = NULL;
}
if(priv->fxs_info) {
DBG("Removing xpd FXS_INFO file %s/%s\n", xbus->busname, xpd->xpdname);
remove_proc_entry(PROC_FXS_INFO_FNAME, xpd->proc_xpd_dir);
+ priv->fxs_info = NULL;
}
#endif
}