diff options
author | Oliver Upton <[email protected]> | 2022-07-19 14:31:32 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-08-01 08:01:22 -0400 |
commit | ad5b072716e9ea7164b578a06c615966e9203c45 (patch) | |
tree | afb41756421e398817938394783212f31d95c8a0 /scripts/gdb/linux/tasks.py | |
parent | 31f6e3832a0f1c366e54033335aed2375f6e447a (diff) |
selftests: KVM: Check stat name before other fields
In order to provide more useful test assertions that describe the broken
stats descriptor, perform sanity check on the stat name before any other
descriptor field. While at it, avoid dereferencing the name field if the
sanity check fails as it is more likely to contain garbage.
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions