summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSeungJu Cheon <suunj1331@gmail.com>2026-06-24 22:02:38 +0900
committerAnup Patel <anup@brainfault.org>2026-07-13 13:38:27 +0530
commitb8aa7571e943591c26512667da824988917d3b67 (patch)
treee7332acfa12a969ee881fb5f12416d8aa61009b9 /tools/lib/python
parent936190fcfcf66695348127992249051467de7072 (diff)
KVM: riscv: SBI FWFT: Apply LOCK flag only on successful set
kvm_sbi_fwft_set() applies the caller's flags to conf->flags before invoking the set() callback. If the callback returns an error, the LOCK bit persists and the feature becomes permanently locked without its value ever being changed. Move the flags assignment after the callback so LOCK takes effect only on success. Fixes: 6b72fd170592 ("RISC-V: KVM: add support for FWFT SBI extension") Signed-off-by: SeungJu Cheon <suunj1331@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260624130238.524706-1-suunj1331@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions