[svn-commits] tzafrir: linux/trunk r10735 - /linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 15 07:41:01 CST 2012
Author: tzafrir
Date: Thu Nov 15 07:40:56 2012
New Revision: 10735
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10735
Log:
xpp: pre/post_unregister: not for the EC
Don't run the pre- and post-unregister hooks on a non-phone XPD
(practically: the echo canceller). This fixes a panic with manual
'dahdi_registertion off' as it is now called for the whole device
(regression of 2.6.x).
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
Modified: linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=10735&r1=10734&r2=10735
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Thu Nov 15 07:40:56 2012
@@ -1125,7 +1125,7 @@
*/
void xpd_dahdi_preunregister(xpd_t *xpd)
{
- if (!xpd)
+ if (!xpd || !IS_PHONEDEV(xpd))
return;
XPD_DBG(DEVICES, xpd, "\n");
update_xpd_status(xpd, DAHDI_ALARM_NOTOPEN);
@@ -1148,7 +1148,7 @@
void xpd_dahdi_postunregister(xpd_t *xpd)
{
- if (!xpd)
+ if (!xpd || !IS_PHONEDEV(xpd))
return;
atomic_dec(&PHONEDEV(xpd).dahdi_registered);
atomic_dec(&num_registered_spans);
More information about the svn-commits
mailing list