diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-12 19:59:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-12 20:00:21 +0100 |
commit | 9375266293446922b02c6137360e82b72c7c6495 (patch) | |
tree | 1a09a44354d3706a0512f2c42f37f521f3e8135b /lib/igt_debugfs.c | |
parent | f78ce760920efb5015725c749f411c5724114bda (diff) |
lib: Don't fail debugfs lookup on an expected absent drm device
When looking up the /dev/dri/card0 for a render device, skip over holes
in the minor index.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r-- | lib/igt_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index c4dab392..2f58519a 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -195,7 +195,7 @@ char *igt_debugfs_path(int device, char *path, int pathlen) debugfs_root, idx); file = open(path, O_RDONLY); if (file < 0) - return NULL; + continue; cmp_len = read(file, cmp, sizeof(cmp)); close(file); |