Commit 5cc2447
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: 6c43e55 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 926e1ed commit 5cc2447
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4875 | 4875 | | |
4876 | 4876 | | |
4877 | 4877 | | |
4878 | | - | |
| 4878 | + | |
4879 | 4879 | | |
4880 | | - | |
| 4880 | + | |
4881 | 4881 | | |
4882 | 4882 | | |
4883 | 4883 | | |
| |||
4887 | 4887 | | |
4888 | 4888 | | |
4889 | 4889 | | |
4890 | | - | |
| 4890 | + | |
4891 | 4891 | | |
4892 | | - | |
| 4892 | + | |
4893 | 4893 | | |
4894 | 4894 | | |
4895 | 4895 | | |
| |||
0 commit comments