We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9db9c commit 7917be1Copy full SHA for 7917be1
arch/riscv/kvm/vcpu_sbi.c
@@ -143,9 +143,9 @@ void kvm_riscv_vcpu_sbi_system_reset(struct kvm_vcpu *vcpu,
143
struct kvm_vcpu *tmp;
144
145
kvm_for_each_vcpu(i, tmp, vcpu->kvm) {
146
- spin_lock(&vcpu->arch.mp_state_lock);
+ spin_lock(&tmp->arch.mp_state_lock);
147
WRITE_ONCE(tmp->arch.mp_state.mp_state, KVM_MP_STATE_STOPPED);
148
- spin_unlock(&vcpu->arch.mp_state_lock);
+ spin_unlock(&tmp->arch.mp_state_lock);
149
}
150
kvm_make_all_cpus_request(vcpu->kvm, KVM_REQ_SLEEP);
151
0 commit comments