acrn-hypervisor/devicemodel/hw/pci
Xinyun Liu fb723efa48 dm: check pci_vdev before using
acrn-dm runs to segmentation fault when failed to create VMs with
improper parameters.

If vdevs failed to be created, they are still be freed in deinit(),
and dereference the null pointers leads to segfault.

Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-06-20 11:29:21 +08:00
..
virtio DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
ahci.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
core.c dm: check pci_vdev before using 2018-06-20 11:29:21 +08:00
gvt.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
hostbridge.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
irq.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
lpc.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
npk.c DM: implement emulated npk pci device 2018-06-07 16:11:49 +08:00
passthrough.c dm: fix the error code issues in passthrough.c 2018-06-08 12:05:25 +08:00
uart.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
wdt_i6300esb.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
xhci.c DM USB: Fix potential crash issues. 2018-06-08 13:45:34 +08:00