Commit 62277de
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/[email protected]
Cc: [email protected]
Fixes: 6c43e55 ("ring-buffer: Add ring buffer startup selftest")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>1 parent a71c9a1 commit 62277de
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4826 | 4826 | | |
4827 | 4827 | | |
4828 | 4828 | | |
4829 | | - | |
| 4829 | + | |
4830 | 4830 | | |
4831 | | - | |
| 4831 | + | |
4832 | 4832 | | |
4833 | 4833 | | |
4834 | 4834 | | |
| |||
4838 | 4838 | | |
4839 | 4839 | | |
4840 | 4840 | | |
4841 | | - | |
| 4841 | + | |
4842 | 4842 | | |
4843 | | - | |
| 4843 | + | |
4844 | 4844 | | |
4845 | 4845 | | |
4846 | 4846 | | |
| |||
0 commit comments