From: Jesse Barnes Date: Fri, 20 Mar 2009 21:16:33 +0000 (-0700) Subject: drm/i915: check for -EINVAL from vm_insert_pfn X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~12281^2~1^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=959b887cf42fd63cf10e28a7f26126f78aa1c0b0;p=mirror_ubuntu-zesty-kernel.git drm/i915: check for -EINVAL from vm_insert_pfn Indicates something is wrong with the mapping; and apparently triggers in current kernels. Signed-off-by: Jesse Barnes Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 0abccb761121..9f4eceb8093d 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -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;