projects
/
platform
/
upstream
/
libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
intel: Don't leak the test page in an has_userptr() error path
[platform/upstream/libdrm.git]
/
tests
/
gem_basic.c
diff --git
a/tests/gem_basic.c
b/tests/gem_basic.c
index
b2176fb
..
4e4b6cb
100644
(file)
--- a/
tests/gem_basic.c
+++ b/
tests/gem_basic.c
@@
-88,7
+88,11
@@
int main(int argc, char **argv)
{
int fd;
- fd = drm_open_any();
+ fd = drm_open_matching("8086:*", 0);
+ if (fd < 0) {
+ fprintf(stderr, "failed to open intel drm device\n");
+ return 0;
+ }
test_bad_close(fd);
test_create_close(fd);