Commit 8d5204ac authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

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: default avatarChangpeng 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent ad672ce2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;