]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't overwrite KVM feature config struct if the feature is present twice
authorPeter Krempa <pkrempa@redhat.com>
Fri, 6 Sep 2024 12:02:31 +0000 (14:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Sep 2024 16:14:34 +0000 (18:14 +0200)
commit5d77061d7e65e9cb7de4e9f28c2b7a69822da82f
tree0bac423e6271dbb0e84fd1a1f88b8a90f4385f08
parent3afbb1644c4f9d5237459bd544d0f511ff99eb80
conf: Don't overwrite KVM feature config struct if the feature is present twice

Don't allocate the struct if it exists already. This sidesteps the
discussion about whether forbidding multiple feature definitions makes
sense.

Fixes: a8e0f9c682143c63897de5c379d3ac3791c51970
Closes: https://gitlab.com/libvirt/libvirt/-/issues/670
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c