[svn-commits] tzafrir: linux/trunk r10301 - /linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 2 09:19:19 CDT 2011


Author: tzafrir
Date: Wed Nov  2 09:19:14 2011
New Revision: 10301

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10301
Log:
xpp: bugfix -- manage xpd refcount for EC module

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=10301&r1=10300&r2=10301
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Wed Nov  2 09:19:14 2011
@@ -864,6 +864,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 = {
@@ -886,7 +887,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;
 	/*
@@ -935,6 +936,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 svn-commits mailing list