diff options
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 2054e557d0d2..e92b185e371b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3634,10 +3634,9 @@ EXPORT_SYMBOL(default_wake_function); | |||
3634 | static void __wake_up_common(wait_queue_head_t *q, unsigned int mode, | 3634 | static void __wake_up_common(wait_queue_head_t *q, unsigned int mode, |
3635 | int nr_exclusive, int sync, void *key) | 3635 | int nr_exclusive, int sync, void *key) |
3636 | { | 3636 | { |
3637 | struct list_head *tmp, *next; | 3637 | wait_queue_t *curr, *next; |
3638 | 3638 | ||
3639 | list_for_each_safe(tmp, next, &q->task_list) { | 3639 | list_for_each_entry_safe(curr, next, &q->task_list, task_list) { |
3640 | wait_queue_t *curr = list_entry(tmp, wait_queue_t, task_list); | ||
3641 | unsigned flags = curr->flags; | 3640 | unsigned flags = curr->flags; |
3642 | 3641 | ||
3643 | if (curr->func(curr, mode, sync, key) && | 3642 | if (curr->func(curr, mode, sync, key) && |