mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
3efb5f21a3
commit
14a5ae40f0
9 changed files with 12 additions and 12 deletions
|
@ -460,7 +460,7 @@ static __init int stack_trace_init(void)
|
|||
struct dentry *d_tracer;
|
||||
|
||||
d_tracer = tracing_init_dentry();
|
||||
if (!d_tracer)
|
||||
if (IS_ERR(d_tracer))
|
||||
return 0;
|
||||
|
||||
trace_create_file("stack_max_size", 0644, d_tracer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue