Fixup previous commit
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 14 Aug 2012 16:51:19 +0000 (18:51 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 14 Aug 2012 16:52:23 +0000 (18:52 +0200)
ENODEV not being defined and return code wrong

tests/prime_nv_pcopy.c

index 1f34bc0..0b3b92a 100644 (file)
@@ -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;