]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix segmentation fault when attaching a non iSCSI host device
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Wed, 17 Jan 2018 12:26:08 +0000 (13:26 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 17 Jan 2018 14:57:53 +0000 (09:57 -0500)
commit97202988d9dd7f327402285efa06f5408f1658ff
tree20bb737580a3d13ca98f40e0ac115c9140b8b4df
parent2efd35a30713dda2f830859cb00210643245b4fc
qemu: Fix segmentation fault when attaching a non iSCSI host device

Add a check if it's a iSCSI hostdev and if it's not then don't use the
union member 'iscsi'. The segmentation fault occured when accessing
secinfo->type, but this can vary from case to case.

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_hotplug.c