mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 19:02:02 +00:00
The create function of hv-emulated device must check the return value of vpci_init_vdev() as it returns NULL pointer on failure, and that function should be called atomically. Also, the destory function should deinit the vpci devices created to prevent resource leak. Tracked-On: #8590 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>