9720298 qemu: Fix segmentation fault when attaching a non iSCSI host device

1 file Authored by Marc Hartmayer 6 years ago, Committed by John Ferlan 6 years ago,
    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>
    
        
file modified
+5 -4