New upstream version 17.11.1
[deb_dpdk.git] / lib / librte_eal / linuxapp / eal / eal_vfio.c
index 58f0123..fb1a622 100644 (file)
@@ -525,7 +525,7 @@ rte_vfio_enable(const char *modname)
 int
 rte_vfio_is_enabled(const char *modname)
 {
-       const int mod_available = rte_eal_check_module(modname);
+       const int mod_available = rte_eal_check_module(modname) > 0;
        return vfio_cfg.vfio_enabled && mod_available;
 }