[svn-commits] sruffell: branch linux/sruffell/dahdi-linux-debugfs r7548 - /linux/team/sruff...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Nov 10 09:30:13 CST 2009
Author: sruffell
Date: Tue Nov 10 09:30:06 2009
New Revision: 7548
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7548
Log:
wcte12xp: Create the echocan ops
Modified:
linux/team/sruffell/dahdi-linux-debugfs/drivers/dahdi/wcte12xp/base.c
Modified: linux/team/sruffell/dahdi-linux-debugfs/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-debugfs/drivers/dahdi/wcte12xp/base.c?view=diff&rev=7548&r1=7547&r2=7548
==============================================================================
--- linux/team/sruffell/dahdi-linux-debugfs/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/team/sruffell/dahdi-linux-debugfs/drivers/dahdi/wcte12xp/base.c Tue Nov 10 09:30:06 2009
@@ -1253,6 +1253,12 @@
wc->chans[x]->pvt = wc;
wc->chans[x]->chanpos = x + 1;
}
+ for (x = 0; x < ARRAY_SIZE(wc->ec); ++x) {
+ wc->ec[x] = kzalloc(sizeof(*wc->ec[x]), GFP_KERNEL);
+ /* !!! cleanup here on error */
+ if (!wc->ec)
+ return -ENOMEM;
+ }
if (dahdi_register(&wc->span, 0)) {
module_printk("Unable to register span with DAHDI\n");
return -1;
@@ -1839,6 +1845,7 @@
#ifdef VPM_SUPPORT
unsigned long flags;
struct vpmadt032 *vpm = wc->vpmadt032;
+ int x;
#endif
if (!wc)
return;
@@ -1869,6 +1876,8 @@
spin_unlock_irqrestore(&wc->reglock, flags);
vpmadt032_free(vpm);
}
+ for (x = 0; x < ARRAY_SIZE(wc->ec); ++x)
+ kfree(wc->ec[x]);
#endif
t1_release(wc);
}
More information about the svn-commits
mailing list