diff options
-rw-r--r-- | thread_sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c index 705fdb942d..b592104ae8 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -1459,7 +1459,8 @@ rb_thread_sync_reset_all(void) list_head_init(queue_waitq(q)); q->num_waiting = 0; } - list_for_each(&szqueue_list, sq, q.live) { + list_for_each(&szqueue_list, q, live) { + sq = container_of(q, struct rb_szqueue, q); list_head_init(szqueue_waitq(sq)); list_head_init(szqueue_pushq(sq)); sq->num_waiting_push = 0; |