summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteven Price <steven.price@arm.com>2020-06-17 13:54:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-16 09:16:44 +0300
commit79aaeec71271edbf5971894d7b31122dde588802 (patch)
tree5c2a36d535f1dfba933b712b6d87750c8bd599e0 /include
parenta494529add3f17ea983c5feb889b0281cea01f4b (diff)
downloadlinux-79aaeec71271edbf5971894d7b31122dde588802.tar.xz
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: stable@vger.kernel.org Reported-by: James Morse <james.morse@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200617105456.28245-1-steven.price@arm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions