summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorTao Cui <cuitao@kylinos.cn>2026-05-04 04:00:38 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2026-05-04 04:00:38 +0300
commitf26faae96c411a70641e4d21b759475caa6122d5 (patch)
treef8485b420b8eede0ab5d9f2cae3cae1dadaad24e /include/linux/timerqueue.h
parentb3e31a6650d4cab63f0814c37c0b360372c6ee9e (diff)
downloadlinux-f26faae96c411a70641e4d21b759475caa6122d5.tar.xz
LoongArch: KVM: Fix missing EMULATE_FAIL in kvm_emu_mmio_read()
In the ldptr (0x24...0x27) opcode decoding path, the default case only breaks out but without setting "ret" value to EMULATE_FAIL. This leaves run->mmio.len uninitialized (stale from a previous MMIO operation) while "ret" value remains EMULATE_DO_MMIO, causing the code to proceed with an incorrect MMIO length. Add "ret = EMULATE_FAIL" to match the other default branches in the same function (e.g. the 0x28...0x2e and 0x38 cases). Cc: stable@vger.kernel.org Reviewed-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Tao Cui <cuitao@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions