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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 26 Apr 2017 18:05:01 +0000 (20:05 +0200)
commitb054b318a7eaade12005ffed8a5957fbb23b6a69
tree3e9affdebd52736b61e416ad23b86a6df7d042d0
parentc88a768d1bc53b9e283904368be4d205c520155d
ring-buffer: Fix return value check in test_ringbuffer()

commit 62277de758b155dc04b78f195a1cb5208c37b2df upstream.

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
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/trace/ring_buffer.c