[dahdi-commits] fjoe: freebsd/trunk r9253 - /freebsd/trunk/freebsd/dahdi/bsd-compat.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Thu Sep 2 05:12:13 CDT 2010


Author: fjoe
Date: Thu Sep  2 05:12:09 2010
New Revision: 9253

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9253
Log:
Usecount should be checked in MOD_QUIESCE event.

Modified:
    freebsd/trunk/freebsd/dahdi/bsd-compat.c

Modified: freebsd/trunk/freebsd/dahdi/bsd-compat.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/freebsd/dahdi/bsd-compat.c?view=diff&rev=9253&r1=9252&r2=9253
==============================================================================
--- freebsd/trunk/freebsd/dahdi/bsd-compat.c (original)
+++ freebsd/trunk/freebsd/dahdi/bsd-compat.c Thu Sep  2 05:12:09 2010
@@ -406,10 +406,12 @@
 			res = m->init();
 		return (-res);
 	case MOD_UNLOAD:
+		if (m->exit)
+			m->exit();
+		return (0);
+	case MOD_QUIESCE:
 		if (dahdi_module_usecount(m) > 0)
 			return (EBUSY);
-		if (m->exit)
-			m->exit();
 		return (0);
 	default:
 		return (EOPNOTSUPP);




More information about the dahdi-commits mailing list