From 8d5204acab589b28f05d6a13b1102232111d5f41 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Thu, 4 Nov 2021 22:47:32 +0800 Subject: [PATCH] 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 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10109 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- lib/vfio_user/vfio_user_pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/vfio_user/vfio_user_pci.c b/lib/vfio_user/vfio_user_pci.c index 37758e2930..2910e2c1d9 100644 --- a/lib/vfio_user/vfio_user_pci.c +++ b/lib/vfio_user/vfio_user_pci.c @@ -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;