urcu-ht: fix incorrect condition in steal
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 30 Sep 2009 13:39:56 +0000 (09:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 30 Sep 2009 13:39:56 +0000 (09:39 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-ht.c

index 324ebed93420dd7957ffd03963aae07340e5001a..e3fd3137a9273795bb6842b110a47774120ae5ae 100644 (file)
--- 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;
 
This page took 0.025493 seconds and 4 git commands to generate.