diff options
author | 2023-10-30 10:47:58 +0000 | |
---|---|---|
committer | 2023-12-18 13:21:14 -0700 | |
commit | 34dfd5bb2e5507e69d9b6d6c90f546600c7a4977 (patch) | |
tree | 1b5ca8530ad2f483602029ed67e97e5b17a15b3e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kunit: string-stream: Allow ERR_PTR to be passed to string_stream_destroy() (diff) | |
download | wireguard-linux-34dfd5bb2e5507e69d9b6d6c90f546600c7a4977.tar.xz wireguard-linux-34dfd5bb2e5507e69d9b6d6c90f546600c7a4977.zip |
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 <rf@opensource.cirrus.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 38289a26e1b8 ("kunit: fix debugfs code to use enum kunit_status, not bool")
Reviewed-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions