From: Mathieu Desnoyers Date: Wed, 30 Sep 2009 13:39:56 +0000 (-0400) Subject: urcu-ht: fix incorrect condition in steal X-Git-Tag: v0.7.0~43^2~239^2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7ce4eb3848a2d2bdd6a267bfddfc8a36fcd45d66;p=urcu.git urcu-ht: fix incorrect condition in steal Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-ht.c b/urcu-ht.c index 324ebed..e3fd313 100644 --- a/urcu-ht.c +++ b/urcu-ht.c @@ -166,7 +166,7 @@ retry: node = rcu_dereference(*prev); } /* Found it ! pointer to object is in "prev" */ - if (rcu_cmpxchg_pointer(prev, node, node->next) != node) + if (rcu_cmpxchg_pointer(prev, node, node->next) == node) del_node = node; goto restart;