diff options
author | 2014-08-26 15:13:22 +0100 | |
---|---|---|
committer | 2014-08-27 22:49:45 +0200 | |
commit | 18d457661fb9fa69352822ab98d39331c3d0e571 (patch) | |
tree | cbe2377b2344fa08be3a17c610d101c85b75e225 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | KVM: ARM/arm64: fix broken __percpu annotation (diff) | |
download | linux-dev-18d457661fb9fa69352822ab98d39331c3d0e571.tar.xz linux-dev-18d457661fb9fa69352822ab98d39331c3d0e571.zip |
KVM: ARM/arm64: avoid returning negative error code as bool
is_valid_cache returns true if the specified cache is valid.
Unfortunately, if the parameter passed it out of range, we return
-ENOENT, which ends up as true leading to potential hilarity.
This patch returns false on the failure path instead.
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions