projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d2bc0
)
perf_counter: x86: proper error propagation for the x86 hw_perf_counter_init()
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Mon, 30 Mar 2009 17:07:09 +0000
(19:07 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 6 Apr 2009 07:30:40 +0000
(09:30 +0200)
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>
arch/x86/kernel/cpu/perf_counter.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/perf_counter.c
b/arch/x86/kernel/cpu/perf_counter.c
index 7aab177fb566378ab40a815dd8c073b7ce367b1f..b8885ccd8049e3220c6ee3be8695b21d2ebf28fb 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_counter.c
+++ b/
arch/x86/kernel/cpu/perf_counter.c
@@
-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;
}