diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-10 14:43:43 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-01-10 14:43:43 -0500 |
commit | fdf0a6b73001976c5d02d631ebdd0927819d7c91 (patch) | |
tree | 4e0f6c9504fbd463085f53ba778f25ffb3c0965f /litmus/sync.c | |
parent | 29496770fea3c801553b0dc5a2a8e295e490a915 (diff) | |
parent | a9a4887bc8dc24b0cf9665f59dc363c126628b25 (diff) |
Merge branch 'prop/misc-fixes' into wip-2012.3-gpu
Diffstat (limited to 'litmus/sync.c')
-rw-r--r-- | litmus/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/sync.c b/litmus/sync.c index a796c20f0e9f..908bf21dc210 100644 --- a/litmus/sync.c +++ b/litmus/sync.c | |||
@@ -91,7 +91,7 @@ static long do_release_ts(lt_t start) | |||
91 | { | 91 | { |
92 | long task_count = 0; | 92 | long task_count = 0; |
93 | 93 | ||
94 | struct list_head *pos; | 94 | struct list_head *pos, *safe; |
95 | struct ts_release_wait *wait; | 95 | struct ts_release_wait *wait; |
96 | 96 | ||
97 | if (mutex_lock_interruptible(&task_release_lock)) { | 97 | if (mutex_lock_interruptible(&task_release_lock)) { |
@@ -103,7 +103,7 @@ static long do_release_ts(lt_t start) | |||
103 | sched_trace_sys_release(&start); | 103 | sched_trace_sys_release(&start); |
104 | 104 | ||
105 | task_count = 0; | 105 | task_count = 0; |
106 | list_for_each(pos, &task_release_list) { | 106 | list_for_each_safe(pos, safe, &task_release_list) { |
107 | wait = (struct ts_release_wait*) | 107 | wait = (struct ts_release_wait*) |
108 | list_entry(pos, struct ts_release_wait, list); | 108 | list_entry(pos, struct ts_release_wait, list); |
109 | 109 | ||