summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_kprobe.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-01-20 11:14:16 -0500
committerSteven Rostedt <rostedt@goodmis.org>2015-01-22 11:19:49 -0500
commit14a5ae40f0def33a422a45b2ed09198adb7bf11c (patch)
tree59fbab59a2c6519b5c95feda7174e58311e3aa2a /kernel/trace/trace_kprobe.c
parent3efb5f21a36fbddd524cffe36426a84622ce580e (diff)
downloadtalos-obmc-linux-14a5ae40f0def33a422a45b2ed09198adb7bf11c.tar.gz
talos-obmc-linux-14a5ae40f0def33a422a45b2ed09198adb7bf11c.zip
tracing: Use IS_ERR() check for return value of tracing_init_dentry()
tracing_init_dentry() will soon return NULL as a valid pointer for the top level tracing directroy. NULL can not be used as an error value. Instead, switch to ERR_PTR() and check the return status with IS_ERR(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r--kernel/trace/trace_kprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index 5edb518be345..b4a00def88f5 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -1320,7 +1320,7 @@ static __init int init_kprobe_trace(void)
return -EINVAL;
d_tracer = tracing_init_dentry();
- if (!d_tracer)
+ if (IS_ERR(d_tracer))
return 0;
entry = debugfs_create_file("kprobe_events", 0644, d_tracer,
OpenPOWER on IntegriCloud