Re: [PATCH 15/16] conf: Properly instantiate virDomainChrSourceDef in virDomainTPMDef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2021, Peter Krempa wrote:
'virDomainChrSourceDef' contains private data so 'virDomainChrSourceDefNew'
must be used to allocate it. 'virDomainTPMDef' was using it directly
which won't work with the chardev helper functions.

Convert it to a pointer to properly allocate private data.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
src/conf/domain_audit.c         |  4 ++--
src/conf/domain_conf.c          | 14 +++++++++-----
src/conf/domain_conf.h          |  4 ++--
src/qemu/qemu_cgroup.c          |  2 +-
src/qemu/qemu_command.c         |  6 +++---
src/qemu/qemu_namespace.c       |  2 +-
src/qemu/qemu_tpm.c             | 10 +++++-----
src/security/security_dac.c     |  6 +++---
src/security/security_selinux.c |  6 +++---
tests/qemuxml2argvtest.c        |  6 +++---
10 files changed, 32 insertions(+), 28 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux