554aaffe3b
dev->mem_table_fds init in vhost_user_set_mem_table but dev->mem may init later in vhost_user_set_vring_addr, so if qemu crash or lost conntion after vhost_user_set_mem_table and before vhost_user_set_vring_addr, it's hugepage memory is not being freed Signed-off-by: Honghui Wang <wanghonghui@ucloud.cn> Change-Id: I782c106078829ff6691ed3265a5d1718493de90c Reviewed-on: https://review.gerrithub.io/c/440254 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>