summaryrefslogtreecommitdiff
path: root/xpp/xpp_usb.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/xpp_usb.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/xpp_usb.c')
-rw-r--r--xpp/xpp_usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c
index 4f81680..1a62974 100644
--- a/xpp/xpp_usb.c
+++ b/xpp/xpp_usb.c
@@ -662,6 +662,7 @@ probe_failed:
if(procsummary) {
DBG("Remove proc_entry: " PROC_USBXPP_SUMMARY "\n");
remove_proc_entry(PROC_USBXPP_SUMMARY, xbus->proc_xbus_dir);
+ procsummary = NULL;
}
xbus_disconnect(xbus); // Blocking until fully deactivated!
}
@@ -705,6 +706,7 @@ static void xusb_disconnect(struct usb_interface *interface)
#ifdef CONFIG_PROC_FS
if(xbus->proc_xbus_dir) {
remove_proc_entry(PROC_USBXPP_SUMMARY, xbus->proc_xbus_dir);
+ xbus->proc_xbus_dir = NULL;
}
#endif
xusb->present = 0;