Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kunit: debugfs: Fix unchecked dereference in debugfs_print_results()
Move the call to kunit_suite_has_succeeded() after the check that the kunit_suite pointer is valid. This was found by smatch: lib/kunit/debugfs.c:66 debugfs_print_results() warn: variable dereferenced before check 'suite' (see line 63) Signed-off-by: Richard Fitzgerald <[email protected]> Reported-by: Dan Carpenter <[email protected]> Fixes: 38289a2 ("kunit: fix debugfs code to use enum kunit_status, not bool") Reviewed-by: Rae Moar <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
- Loading branch information