[Nouveau] [PATCH 1/3] lib: fix devices selection using -a
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon Sep 15 04:25:40 PDT 2014
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
lib/kern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kern.c b/lib/kern.c
index 930cd35..7e8f3e9 100644
--- a/lib/kern.c
+++ b/lib/kern.c
@@ -173,7 +173,7 @@ drm_client_init(const char *name, u64 device, const char *cfg,
if (ret = -ENOMEM, !(drm = *ppriv = malloc(sizeof(*drm))))
goto fail;
- for (minor = DRM_RENDER_MIN; minor <= DRM_RENDER_MAX; minor++) {
+ for (minor = DRM_RENDER_MIN + device; minor <= DRM_RENDER_MAX; minor++) {
snprintf(path, sizeof(path), "/dev/dri/renderD%d", minor);
if ((drm->fd = open(path, O_RDWR, 0)) < 0)
continue;
--
2.0.0
More information about the Nouveau
mailing list