summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2024-12-12 20:42:21 +0300
committerKees Cook <kees@kernel.org>2024-12-19 04:00:29 +0300
commit3e707b07f582c12ed78fa5516a97bf701bf0634c (patch)
tree75e026ae94136f09cb68d66bd4e39b4dcda85d98 /tools/perf/scripts/python/mem-phys-addr.py
parentfaf2d88e556756f31d9e2e33f37ce89396ba0f7f (diff)
downloadlinux-3e707b07f582c12ed78fa5516a97bf701bf0634c.tar.xz
selftests: ktap_helpers: Fix uninitialized variable
__ktap_test() may be called without the optional third argument which is an issue for scripts using `set -u` to detect uninitialized variables and potential bugs. Fix this optional "directive" argument by either using the third argument or an empty string. This is required for the next commit to properly test script execution control. Cc: Kees Cook <kees@kernel.org> Cc: Nícolas F. R. A. Prado <nfraprado@collabora.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Fixes: 14571ab1ad21 ("kselftest: Add new test for detecting unprobed Devicetree devices") Signed-off-by: Mickaël Salaün <mic@digikod.net> Link: https://lore.kernel.org/r/20241212174223.389435-7-mic@digikod.net Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions