--- a/hw/xfree86/os-support/linux/lnx_platform.c +++ a/hw/xfree86/os-support/linux/lnx_platform.c @@ -151,6 +151,9 @@ xf86PlatformDeviceProbe(struct OdevAttributes *attribs) if (!path) goto out_free; + if (!xf86_num_platform_devices) + goto out_free; + for (i = 0; i < xf86_num_platform_devices; i++) { char *dpath = xf86_platform_odev_attributes(i)->path;