diff options
author | 2023-12-18 15:17:29 +0000 | |
---|---|---|
committer | 2024-01-03 09:06:19 -0700 | |
commit | a0b84213f947176ddcd0e96e0751a109f28cde21 (patch) | |
tree | 62d455556ff4ead7d2417d31774e7e15d73b8057 /tools/perf/scripts/python/libxed.py | |
parent | kunit: Reset test->priv after each param iteration (diff) | |
download | wireguard-linux-a0b84213f947176ddcd0e96e0751a109f28cde21.tar.xz wireguard-linux-a0b84213f947176ddcd0e96e0751a109f28cde21.zip |
kunit: Fix NULL-dereference in kunit_init_suite() if suite->log is NULL
suite->log must be checked for NULL before passing it to
string_stream_clear(). This was done in kunit_init_test() but was missing
from kunit_init_suite().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 6d696c4695c5 ("kunit: add ability to run tests after boot using debugfs")
Reviewed-by: Rae Moar <rmoar@google.com>
Acked-by: David Gow <davidgow@google.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions