From: Mathieu Desnoyers Date: Sat, 9 Jul 2011 20:43:26 +0000 (-0400) Subject: rculfhash: add missing clear flag in gc X-Git-Tag: v0.7.0~43^2~200 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b453eae1adf45ba2377e50c15b438c77c96a35b5;p=userspace-rcu.git rculfhash: add missing clear flag in gc Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index e814717..0c433e5 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -247,7 +247,7 @@ void _ht_gc_bucket(struct rcu_ht_node *dummy, struct rcu_ht_node *node) next = rcu_dereference(clear_flag(iter)->p.next); if (is_removed(next)) break; - iter_prev = iter; + iter_prev = clear_flag(iter); iter = next; } assert(!is_removed(iter));