[dahdi-commits] sruffell: linux/trunk r9145 - /linux/trunk/drivers/dahdi/wcte12xp/base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Aug 17 12:15:51 CDT 2010
Author: sruffell
Date: Tue Aug 17 12:15:47 2010
New Revision: 9145
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9145
Log:
wcte12xp: Clean up -vpm workqueue if there is not a VPMADT032 installed.
DAHDI-681.
Modified:
linux/trunk/drivers/dahdi/wcte12xp/base.c
Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=9145&r1=9144&r2=9145
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Tue Aug 17 12:15:47 2010
@@ -1452,12 +1452,13 @@
res = vpmadt032_init(wc->vpmadt032, &wc->vb);
if (-ENODEV == res) {
+ struct vpmadt032 *vpm = wc->vpmadt032;
/* There does not appear to be a VPMADT032 installed. */
clear_bit(4, &wc->ctlreg);
spin_lock_irqsave(&wc->reglock, flags);
wc->vpmadt032 = NULL;
spin_unlock_irqrestore(&wc->reglock, flags);
- vpmadt032_free(wc->vpmadt032);
+ vpmadt032_free(vpm);
return res;
} else if (res) {
More information about the dahdi-commits
mailing list