[svn-commits] fjoe: freebsd/trunk r9176 - /freebsd/trunk/drivers/dahdi/voicebus/voicebus.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 23 00:58:08 CDT 2010


Author: fjoe
Date: Mon Aug 23 00:58:03 2010
New Revision: 9176

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9176
Log:
Initialize vbb before passing it to voicebus_unmap.

Modified:
    freebsd/trunk/drivers/dahdi/voicebus/voicebus.c

Modified: freebsd/trunk/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9176&r1=9175&r2=9176
==============================================================================
--- freebsd/trunk/drivers/dahdi/voicebus/voicebus.c (original)
+++ freebsd/trunk/drivers/dahdi/voicebus/voicebus.c Mon Aug 23 00:58:03 2010
@@ -1115,9 +1115,8 @@
 	if (OWNED(d) || !d->buffer1 || (d->buffer1 == vb->idle_vbb_dma_addr))
 		return NULL;
 
+	vbb = dl->pending[head];
 	voicebus_unmap(vb, vbb, DMA_TO_DEVICE);
-
-	vbb = dl->pending[head];
 	if (NORMAL == vb->mode) {
 		d->buffer1 = vb->idle_vbb_dma_addr;
 		dl->pending[head] = vb->idle_vbb;




More information about the svn-commits mailing list