Skip to content

Commit

Permalink
perf_counter: x86: proper error propagation for the x86 hw_perf_count…
Browse files Browse the repository at this point in the history
…er_init()

Now that Paul cleaned up the error propagation paths, pass down the
x86 error as well.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Paul Mackerras <paulus@samba.org>
Orig-LKML-Reference: <20090330171023.792822360@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 6, 2009
1 parent d5d2bc0 commit 9ea98e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 9ea98e1

Please sign in to comment.