Spdk/lib/vhost
wanghonghui 554aaffe3b vhost fix potential memleak in vhost_backend_cleanup
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>
2019-01-15 17:01:09 +00:00
..
rte_vhost vhost fix potential memleak in vhost_backend_cleanup 2019-01-15 17:01:09 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: separate sessions from devices 2019-01-13 00:46:28 +00:00
vhost_internal.h vhost: introduce per-session coalescing settings 2019-01-13 00:46:28 +00:00
vhost_nvme.c vhost: separate sessions from devices 2019-01-13 00:46:28 +00:00
vhost_rpc.c vhost: rpc: add an optional parameter -n/--name for get_vhost_controllers 2018-10-04 23:33:04 +00:00
vhost_scsi.c vhost: separate sessions from devices 2019-01-13 00:46:28 +00:00
vhost.c memory: replace all hardcoded 0x200000 with a define 2019-01-13 00:47:26 +00:00