acrn-hypervisor/devicemodel/hw
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
..
pci dm: check pci_vdev before using 2018-06-20 11:29:21 +08:00
platform DM: Fix build failure with Openssl 1.1+ 2018-06-19 10:35:47 +08:00
block_if.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
uart_core.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
usb_core.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00