]> git.proxmox.com Git - mirror_qemu.git/commit
accel/nvmm: Fix NULL dereference in nvmm_init_vcpu()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 29 Apr 2024 09:11:04 +0000 (11:11 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 3 May 2024 12:37:51 +0000 (14:37 +0200)
commit61653b4a97b1c08b0f1d090da1ed981362a3961a
treef9a314a64bf35f723e30a6a6520cfb6ebf695e85
parentfd87be1dada5672f877e03c2ca8504458292c479
accel/nvmm: Fix NULL dereference in nvmm_init_vcpu()

When mechanically moving the @dirty field to AccelCPUState
in commit 79f1926b2d, we neglected cpu->accel is still NULL
when we want to dereference it.

Reported-by: Volker Rümelin <vr_qemu@t-online.de>
Suggested-by: Volker Rümelin <vr_qemu@t-online.de>
Fixes: 79f1926b2d ("accel/nvmm: Use accel-specific per-vcpu @dirty field")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240429091918.27429-3-philmd@linaro.org>
target/i386/nvmm/nvmm-all.c