[svn-commits] sruffell: linux/trunk r8183 - /linux/trunk/drivers/dahdi/voicebus/voicebus.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 1 11:56:55 CST 2010


Author: sruffell
Date: Mon Mar  1 11:56:52 2010
New Revision: 8183

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8183
Log:
wctdm24xxp, wcte12xp: Change list_for_each_entry to list_for_each_entry_safe.

Since we're calling list_move_tail, we need to use the safe version.

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

Modified: linux/trunk/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=8183&r1=8182&r2=8183
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/voicebus.c Mon Mar  1 11:56:52 2010
@@ -1073,6 +1073,7 @@
 		    struct list_head *buffers)
 {
 	struct vbb *vbb;
+	struct vbb *n;
 	int i;
 	LIST_HEAD(local);
 
@@ -1106,7 +1107,7 @@
 
 	handle_transmit(vb, &local);
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
-	list_for_each_entry(vbb, &local, entry)
+	list_for_each_entry_safe(vbb, n, &local, entry)
 		list_move_tail(&vbb->entry, buffers);
 #else
 	list_splice_tail(&local, buffers);




More information about the svn-commits mailing list