[svn-commits] fjoe: freebsd/trunk r9252 - in /freebsd/trunk/drivers/dahdi: wcfxo.c wctdm.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 2 04:22:48 CDT 2010
Author: fjoe
Date: Thu Sep 2 04:22:44 2010
New Revision: 9252
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9252
Log:
Add dahdi_module_usecount() checks.
Modified:
freebsd/trunk/drivers/dahdi/wcfxo.c
freebsd/trunk/drivers/dahdi/wctdm.c
Modified: freebsd/trunk/drivers/dahdi/wcfxo.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/wcfxo.c?view=diff&rev=9252&r1=9251&r2=9252
==============================================================================
--- freebsd/trunk/drivers/dahdi/wcfxo.c (original)
+++ freebsd/trunk/drivers/dahdi/wcfxo.c Thu Sep 2 04:22:44 2010
@@ -1299,6 +1299,9 @@
{
struct wcfxo *wc = device_get_softc(dev);
+ if (dahdi_module_usecount(THIS_MODULE) > 0)
+ return (EBUSY);
+
/* Stop any DMA */
wcfxo_stop_dma(wc);
wcfxo_reset_tdm(wc);
Modified: freebsd/trunk/drivers/dahdi/wctdm.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/wctdm.c?view=diff&rev=9252&r1=9251&r2=9252
==============================================================================
--- freebsd/trunk/drivers/dahdi/wctdm.c (original)
+++ freebsd/trunk/drivers/dahdi/wctdm.c Thu Sep 2 04:22:44 2010
@@ -3077,6 +3077,9 @@
{
struct wctdm *wc = device_get_softc(dev);
+ if (dahdi_module_usecount(THIS_MODULE) > 0)
+ return (EBUSY);
+
/* Stop any DMA */
wctdm_stop_dma(wc);
wctdm_reset_tdm(wc);
More information about the svn-commits
mailing list