[PATCH v2] KVM: arm64: kvm_reset_vcpu() return code incorrect with SVE

Marc Zyngier maz at kernel.org
Mon Jun 22 09:41:27 EDT 2020

On Wed, 17 Jun 2020 11:54:56 +0100, Steven Price wrote:
> 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.

Applied to next, thanks!

[1/1] KVM: arm64: Fix kvm_reset_vcpu() return code being incorrect with SVE
      commit: 66b7e05dc0239c5817859f261098ba9cc2efbd2b


Without deviation from the norm, progress is not possible.

More information about the linux-arm-kernel mailing list