nvme/vfio-user: remove internal device list
The internal device list isn't used anywhere, and will cause ASAN error because we didn't remove the entry from the device list when destructing controller. Change-Id: Ie97bf10ca44ff773a8bc5f0476611b3844ef901a Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10109 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
ad672ce249
commit
8d5204acab
@ -44,7 +44,6 @@
|
||||
|
||||
#include "vfio_user_internal.h"
|
||||
|
||||
static TAILQ_HEAD(, vfio_device) g_vfio_devices = TAILQ_HEAD_INITIALIZER(g_vfio_devices);
|
||||
static uint32_t g_vfio_dev_id;
|
||||
|
||||
int
|
||||
@ -407,7 +406,6 @@ spdk_vfio_user_setup(const char *path)
|
||||
}
|
||||
|
||||
SPDK_DEBUGLOG(vfio_pci, "Device %s, Path %s Setup Successfully\n", device->name, device->path);
|
||||
TAILQ_INSERT_TAIL(&g_vfio_devices, device, link);
|
||||
|
||||
return device;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user