Commit 9ea98e19 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf_counter: x86: proper error propagation for the x86 hw_perf_counter_init()

Now that Paul cleaned up the error propagation paths, pass down the
x86 error as well.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: default avatarPaul Mackerras <paulus@samba.org>
Orig-LKML-Reference: <20090330171023.792822360@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d5d2bc0d
......@@ -954,7 +954,7 @@ hw_perf_counter_init(struct perf_counter *counter)
err = __hw_perf_counter_init(counter);
if (err)
return NULL;
return ERR_PTR(err);
return &x86_perf_counter_ops;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment