]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix lookup against stateless/combined pflash
authorAndrea Bolognani <abologna@redhat.com>
Fri, 26 May 2023 15:47:42 +0000 (17:47 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 21 Aug 2023 11:51:20 +0000 (13:51 +0200)
commitac76386edad3be2bbd6202a30063b9205011f5c5
treed14c54a5112701e1e05bb00ebaedb129e3d292aa
parentd917883b30f1d33f1df78394152e67b402b9c72e
qemu: Fix lookup against stateless/combined pflash

Just like the more common split builds, these are of type
QEMU_FIRMWARE_DEVICE_FLASH; however, they have no associated
NVRAM template, so we can't access the corresponding structure
member unconditionally or we'll trigger a crash.

https://bugzilla.redhat.com/show_bug.cgi?id=2196178

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_firmware.c