projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd51d25
)
ftrace: fix check for return value of register_module_notifier in event_trace_init
author
Ming Lei
<tom.leiming@gmail.com>
Mon, 18 May 2009 15:04:46 +0000
(23:04 +0800)
committer
Frederic Weisbecker
<fweisbec@gmail.com>
Wed, 20 May 2009 17:23:11 +0000
(19:23 +0200)
register_module_notifier() returns zero in the success case.
So fix the inverted fail case check in trace events modules
handler.
[ Impact: fix spurious warning on ftrace initialization]
Reported-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/trace/trace_events.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace_events.c
b/kernel/trace/trace_events.c
index 0eec0c55dd87db0cf8201d759fc643a5c238d542..9e91c4ad7c8b3dcf1e5f70f1216bd6c3ef1f91c9 100644
(file)
--- a/
kernel/trace/trace_events.c
+++ b/
kernel/trace/trace_events.c
@@
-1174,7
+1174,7
@@
static __init int event_trace_init(void)
}
ret = register_module_notifier(&trace_module_nb);
- if (
!
ret)
+ if (ret)
pr_warning("Failed to register trace events module notifier\n");
return 0;