summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_compat.c2
-rw-r--r--tests/mode/modetest.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c
index 2a761963..dbb31578 100644
--- a/linux-core/drm_compat.c
+++ b/linux-core/drm_compat.c
@@ -217,7 +217,7 @@ static struct page *drm_bo_vm_fault(struct vm_area_struct *vma,
mutex_lock(&bo->mutex);
- err = drm_bo_wait(bo, 0, 1, 0);
+ err = drm_bo_wait(bo, 0, 1, 0, 1);
if (err) {
data->type = (err == -EAGAIN) ?
VM_FAULT_MINOR : VM_FAULT_SIGBUS;
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index 1fab0406..99238d5a 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -351,7 +351,7 @@ int main(int argc, char **argv)
printf("Starting test\n");
- fd = drmOpenControl(0);
+ fd = drmOpen("i915", NULL);
if (fd < 0) {
printf("Failed to open the card fb (%d)\n",fd);