tracing: Fix return value check in trace_benchmark_reg()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 13:55:02 +0000 (13:55 +0000)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 15 Feb 2017 14:02:27 +0000 (09:02 -0500)
commit8f0994bb8cbde5452e58ce0cacdbf6cb58079d01
tree648f3881631818216a871711b9eb014551bccfb6
parenteb583cd484f9a76c3716c0539bd06340943eeff9
tracing: Fix return value check in trace_benchmark_reg()

In case of error, the function kthread_run() returns ERR_PTR() and never
returns NULL. The NULL test in the return value check should be replaced
with IS_ERR().

Link: http://lkml.kernel.org/r/20170112135502.28556-1-weiyj.lk@gmail.com
Cc: stable@vger.kernel.org
Fixes: 81dc9f0e ("tracing: Add tracepoint benchmark tracepoint")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_benchmark.c