summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-03-01 17:56:52 +0000
committerShaun Ruffell <sruffell@digium.com>2010-03-01 17:56:52 +0000
commit895902ceaafad9b629e49102cf19492af97a4e07 (patch)
treeb0a76dc9cf89eea382411b5fbbd3e334f4e6acab
parent7eb1d995c2442284e4d6bda3abb3a4381af35d60 (diff)
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
-rw-r--r--drivers/dahdi/voicebus/voicebus.c3
1 files changed, 2 insertions, 1 deletions
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);