]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainBlocksStatsGather: Fix blockstats gathering after refactor
authorPeter Krempa <pkrempa@redhat.com>
Tue, 28 Oct 2025 16:13:17 +0000 (17:13 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 29 Oct 2025 09:05:52 +0000 (10:05 +0100)
commit0a30b6d2e5ed301099bf215e2b24cfdd21fefbf5
tree676387344a99077553aa33772ba8ae698f378316
parentf6ea64f18204069e91e18e8229951b012a7f6bff
qemuDomainBlocksStatsGather: Fix blockstats gathering after refactor

Commit 58aa005f3e95114 which refactored how block stats are stored
intended to change the code path where stats for all devices are totaled
together by allocating new stats object and using that but the commit
forgot to actually change the pointers inside the loop.

Unfortunately this was not caught by the compiler as there were
pre-existing pointers of the same type with the same name, which
resulted into a NULL dereference.

Fixes: 58aa005f3e95114b4f2dab76ee4ade06182a3f20
Closes: https://gitlab.com/libvirt/libvirt/-/issues/827
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c