[dahdi-commits] tzafrir: branch linux/2.5 r10374 - /linux/branches/2.5/drivers/dahdi/xpp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Dec 7 13:42:24 CST 2011
Author: tzafrir
Date: Wed Dec 7 13:42:20 2011
New Revision: 10374
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10374
Log:
xpp: bugfix -- manage xpd refcount for EC module
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/branches/2.5/drivers/dahdi/xpp/xpp_dahdi.c
Modified: linux/branches/2.5/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.5/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=10374&r1=10373&r2=10374
==============================================================================
--- linux/branches/2.5/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/branches/2.5/drivers/dahdi/xpp/xpp_dahdi.c Wed Dec 7 13:42:20 2011
@@ -915,6 +915,7 @@
LINE_DBG(GENERAL, xpd, pos, "mode=0x%X\n", ec->status.mode);
CALL_EC_METHOD(ec_set, xbus, xpd, pos, 0);
CALL_EC_METHOD(ec_update, xbus, xbus);
+ put_xpd(__FUNCTION__, xpd); /* aquired in xpp_echocan_create() */
}
static const struct dahdi_echocan_features xpp_ec_features = {
@@ -937,7 +938,7 @@
xpd = chan->pvt;
xbus = xpd->xbus;
pos = chan->chanpos - 1;
- LINE_DBG(GENERAL, xpd, pos, "%s:\n", __func__);
+ LINE_DBG(GENERAL, xpd, pos, "\n");
if (!ECHOOPS(xbus))
return NULL;
/*
@@ -986,6 +987,7 @@
*ec = phonedev->ec[pos];
(*ec)->ops = &xpp_ec_ops;
(*ec)->features = xpp_ec_features;
+ xpd = get_xpd(__FUNCTION__, xpd); /* Returned in echocan_free() */
LINE_DBG(GENERAL, xpd, pos, "(tap=%d, param_count=%d)\n",
ecp->tap_length, ecp->param_count);
ret = CALL_EC_METHOD(ec_set, xbus, xpd, pos, 1);
More information about the dahdi-commits
mailing list