[svn-commits] sruffell: linux/trunk r8177 - /linux/trunk/drivers/dahdi/wcte12xp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 1 02:14:30 CST 2010


Author: sruffell
Date: Mon Mar  1 02:14:19 2010
New Revision: 8177

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8177
Log:
wcte12xp: Cleanup if voicebus_start fails.

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=8177&r1=8176&r2=8177
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Mon Mar  1 02:14:19 2010
@@ -1863,7 +1863,11 @@
 	}
 
 	voicebus_lock_latency(&wc->vb);
-	voicebus_start(&wc->vb);
+	if (voicebus_start(&wc->vb)) {
+		voicebus_release(&wc->vb);
+		free_wc(wc);
+		return -EIO;
+	}
 	t1_hardware_post_init(wc);
 
 	for (x = 0; x < (wc->spantype == TYPE_E1 ? 31 : 24); x++) {




More information about the svn-commits mailing list