Message ID | 20190818165529.835-1-maz@kernel.org |
---|---|
State | Superseded |
Headers | show |
Series | [5.2-stable] arm64: KVM: regmap: Fix unexpected switch fall-through | expand |
On Sun, Aug 18, 2019 at 05:55:29PM +0100, Marc Zyngier wrote: > From: Anders Roxell <anders.roxell@linaro.org> > > commit 3d584a3c85d6fe2cf878f220d4ad7145e7f89218 upstream. Both patches now queued up, thanks! greg k-h
diff --git a/arch/arm64/kvm/regmap.c b/arch/arm64/kvm/regmap.c index d66613e6ad08..8a38ccf8dc02 100644 --- a/arch/arm64/kvm/regmap.c +++ b/arch/arm64/kvm/regmap.c @@ -178,13 +178,18 @@ void vcpu_write_spsr32(struct kvm_vcpu *vcpu, unsigned long v) switch (spsr_idx) { case KVM_SPSR_SVC: write_sysreg_el1(v, spsr); + break; case KVM_SPSR_ABT: write_sysreg(v, spsr_abt); + break; case KVM_SPSR_UND: write_sysreg(v, spsr_und); + break; case KVM_SPSR_IRQ: write_sysreg(v, spsr_irq); + break; case KVM_SPSR_FIQ: write_sysreg(v, spsr_fiq); + break; } }