]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/i915: check for -EINVAL from vm_insert_pfn
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 7 Apr 2009 02:40:22 +0000 (19:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:53 +0000 (10:36 -0700)
upstream commit: 959b887cf42fd63cf10e28a7f26126f78aa1c0b0

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/gpu/drm/i915/i915_gem.c

index 37427e4016cbe5f93b487107cc4284379085e219..fb6390acef7e37c05d2075e6d572f8c5a51d10b0 100644 (file)
@@ -603,6 +603,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;