urcu-pointer: fix rcu_set_pointer unset return value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Oct 2011 02:01:50 +0000 (22:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Oct 2011 02:01:50 +0000 (22:01 -0400)
The problem only affected non-_LGPL_SOURCE configs.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Fix-proposed-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-pointer.h

index 67ee381686903f2ab59de27362748730d61919a9..dd64ec4128fadb2f7b39971a0d975c891c0a6013 100644 (file)
@@ -101,6 +101,7 @@ extern void *rcu_set_pointer_sym(void **p, void *v);
                typeof(*(p)) _________p1 = URCU_FORCE_CAST(typeof(*(p)),     \
                        rcu_set_pointer_sym(URCU_FORCE_CAST(void **, p),     \
                                            _________pv));                   \
+               (_________p1);                                               \
        })
 
 #endif /* !_LGPL_SOURCE */
This page took 0.025427 seconds and 4 git commands to generate.