[svn-commits] tzafrir: branch linux/2.6 r10736 - /linux/branches/2.6/drivers/dahdi/xpp/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 15 09:15:52 CST 2012
Author: tzafrir
Date: Thu Nov 15 09:15:48 2012
New Revision: 10736
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10736
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>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10735
Modified:
linux/branches/2.6/drivers/dahdi/xpp/xpp_dahdi.c
Modified: linux/branches/2.6/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.6/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=10736&r1=10735&r2=10736
==============================================================================
--- linux/branches/2.6/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/branches/2.6/drivers/dahdi/xpp/xpp_dahdi.c Thu Nov 15 09:15:48 2012
@@ -1083,7 +1083,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);
@@ -1103,7 +1103,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