diff --git a/xf86drmMode.c b/xf86drmMode.c index 6fa2e83f..4052e031 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -806,7 +806,7 @@ drm_public int drmCheckModesettingSupported(const char *busid) size_t len; /* How many GPUs do we expect in the machine ? */ - for (i = 0; i < 16; i++) { + for (i = 0; i < 10; i++) { snprintf(oid, sizeof(oid), "hw.dri.%d.busid", i); len = sizeof(sbusid); ret = sysctlbyname(oid, sbusid, &len, NULL, 0);