call_rcu: fix error handling of malloc error
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Sep 2011 21:17:05 +0000 (17:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Sep 2011 21:17:05 +0000 (17:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h

index d09adb1bc431a55923d3bbeb3904939f3344e460..29c4e28e334a0654f98725392229dbe98b07645a 100644 (file)
@@ -669,6 +669,7 @@ void free_all_cpu_call_rcu_data(void)
                        fprintf(stderr, "[error] liburcu: unable to allocate per-CPU pointer array\n");
                }
                warned = 1;
+               return;
        }
 
        for (cpu = 0; cpu < maxcpus; cpu++) {
This page took 0.025242 seconds and 4 git commands to generate.