diff options
| author | Radim Krčmář <[email protected]> | 2025-05-23 10:47:28 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-05-24 16:00:47 +0000 |
| commit | 7917be170928189fefad490d1a1237fdfa6b856f (patch) | |
| tree | 8e2cffa7f11d45e13ff02cad2cd65a0c1ac781db /rust/helpers/fs.c | |
| parent | RISC-V: KVM: add KVM_CAP_RISCV_MP_STATE_RESET (diff) | |
| download | kernel-7917be170928189fefad490d1a1237fdfa6b856f.tar.gz kernel-7917be170928189fefad490d1a1237fdfa6b856f.zip | |
RISC-V: KVM: lock the correct mp_state during reset
Currently, the kvm_riscv_vcpu_sbi_system_reset() function locks
vcpu->arch.mp_state_lock when updating tmp->arch.mp_state.mp_state
which is incorrect hence fix it.
Fixes: 2121cadec45a ("RISCV: KVM: Introduce mp_state_lock to avoid lock inversion")
Signed-off-by: Radim Krčmář <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'rust/helpers/fs.c')
0 files changed, 0 insertions, 0 deletions
