summaryrefslogtreecommitdiff
path: root/tests/prime_nv_pcopy.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-08-14 18:51:19 +0200
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-08-14 18:52:23 +0200
commit1f523bd8d10c0b67fc8a026633bcaa416ea03d9c (patch)
treee29d1f7e123228a31b946bfdbd4a35b36fdb638c /tests/prime_nv_pcopy.c
parent3dda35744561e61cd6a63a75eb77bc4d67643f27 (diff)
Fixup previous commit
ENODEV not being defined and return code wrong
Diffstat (limited to 'tests/prime_nv_pcopy.c')
-rw-r--r--tests/prime_nv_pcopy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/prime_nv_pcopy.c b/tests/prime_nv_pcopy.c
index 1f34bc0f..0b3b92a6 100644
--- a/tests/prime_nv_pcopy.c
+++ b/tests/prime_nv_pcopy.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
+#include <errno.h>
#include "i915_drm.h"
#include "intel_bufmgr.h"
@@ -289,7 +290,7 @@ static int init_nouveau(void)
fprintf(stderr, "Make sure nouveau_accel is active\n");
fprintf(stderr, "nvd9 is likely broken regardless\n");
}
- return 77;
+ return ret;
}
fifo = nchannel->data;