aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-05-14 13:34:51 +0300
committerPaolo Bonzini <[email protected]>2019-05-24 21:27:04 +0200
commitbe7fcf1d1701a5266dd36eab4978476f63d1bd57 (patch)
tree87900a1dd2e5a0b1d977a462559c462768d90532 /tools/perf/scripts/python/exported-sql-viewer.py
parent2eb06c306a579853346d22eda73332ed4f3e81e3 (diff)
KVM: selftests: Fix a condition in test_hv_cpuid()
The code is trying to check that all the padding is zeroed out and it does this: entry->padding[0] == entry->padding[1] == entry->padding[2] == 0 Assume everything is zeroed correctly, then the first comparison is true, the next comparison is false and false is equal to zero so the overall condition is true. This bug doesn't affect run time very badly, but the code should instead just check that all three paddings are zero individually. Also the error message was copy and pasted from an earlier error and it wasn't correct. Fixes: 7edcb7343327 ("KVM: selftests: Add hyperv_cpuid test") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions