ring-buffer: Fix return value check in test_ringbuffer()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jun 2016 17:33:59 +0000 (17:33 +0000)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 5 Apr 2017 13:36:52 +0000 (09:36 -0400)
commit62277de758b155dc04b78f195a1cb5208c37b2df
tree5853dbb3ecb5007c24899187602b49d51657025c
parenta71c9a1c779f2499fb2afc0553e543f18aff6edf
ring-buffer: Fix return value check in test_ringbuffer()

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/1466184839-14927-1-git-send-email-weiyj_lk@163.com
Cc: stable@vger.kernel.org
Fixes: 6c43e554a ("ring-buffer: Add ring buffer startup selftest")
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c