diff options
| author | Steven Price <[email protected]> | 2020-06-17 10:54:56 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2020-06-22 13:39:57 +0000 |
| commit | 66b7e05dc0239c5817859f261098ba9cc2efbd2b (patch) | |
| tree | 7448f0ece7d7ece2cb471f6be4433eba9b635cae /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | KVM: arm64: Annotate hyp NMI-related functions as __always_inline (diff) | |
| download | kernel-66b7e05dc0239c5817859f261098ba9cc2efbd2b.tar.gz kernel-66b7e05dc0239c5817859f261098ba9cc2efbd2b.zip | |
KVM: arm64: Fix kvm_reset_vcpu() return code being incorrect with SVE
If SVE is enabled then 'ret' can be assigned the return value of
kvm_vcpu_enable_sve() which may be 0 causing future "goto out" sites to
erroneously return 0 on failure rather than -EINVAL as expected.
Remove the initialisation of 'ret' and make setting the return value
explicit to avoid this situation in the future.
Fixes: 9a3cdf26e336 ("KVM: arm64/sve: Allow userspace to enable SVE for vcpus")
Cc: [email protected]
Reported-by: James Morse <[email protected]>
Signed-off-by: Steven Price <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions
