]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix improper union member access on hostdevs
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Tue, 15 Nov 2016 18:25:39 +0000 (19:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Nov 2016 13:37:36 +0000 (14:37 +0100)
commit505bc9b025ca9ad5f1d8b1886a3fe816afcc53b1
treee0affeb0bc8461d34aa50cb25a2717d1aba37ca7
parentae381879f3d7d2d3ae6c80ef7de5dfd74eb10f6f
qemu: Fix improper union member access on hostdevs

Add missing checks if a hostdev is a subsystem/SCSI device before access
the union member 'subsys'/'scsi'.  Also fix indentation and simplify
qemuDomainObjCheckHostdevTaint().

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
src/qemu/qemu_domain.c
src/qemu/qemu_process.c