]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/i915: check for -EINVAL from vm_insert_pfn
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 21:16:33 +0000 (14:16 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 18:07:49 +0000 (11:07 -0700)
Indicates something is wrong with the mapping; and apparently triggers
in current kernels.

Signed-off-by: Jesse Barnes <jbarnes@virtuosugeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c

index 0abccb76112126a78e59b9fe212fd5fe15eaf46f..9f4eceb8093d90719f4628e59af94b3df5cabefc 100644 (file)
@@ -1072,6 +1072,7 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
        case -EAGAIN:
                return VM_FAULT_OOM;
        case -EFAULT:
+       case -EINVAL:
                return VM_FAULT_SIGBUS;
        default:
                return VM_FAULT_NOPAGE;