diff --git a/lib/util/pci.c b/lib/util/pci.c index 2470175c3..efede8fc7 100644 --- a/lib/util/pci.c +++ b/lib/util/pci.c @@ -448,7 +448,7 @@ spdk_pci_device_has_non_uio_driver(struct spdk_pci_device *dev) driver_begin = driver; } - return (strcmp(driver_begin, "uio_pci_generic") != 0 && + return (strncmp(driver_begin, "uio_", 4) != 0 && strcmp(driver_begin, "vfio-pci") != 0); } #endif