From 895902ceaafad9b629e49102cf19492af97a4e07 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 1 Mar 2010 17:56:52 +0000 Subject: 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. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8183 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/voicebus/voicebus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c index 8896b03..fa341b0 100644 --- a/drivers/dahdi/voicebus/voicebus.c +++ b/drivers/dahdi/voicebus/voicebus.c @@ -1073,6 +1073,7 @@ vb_increase_latency(struct voicebus *vb, unsigned int increase, struct list_head *buffers) { struct vbb *vbb; + struct vbb *n; int i; LIST_HEAD(local); @@ -1106,7 +1107,7 @@ vb_increase_latency(struct voicebus *vb, unsigned int increase, 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); -- cgit v1.2.3