Gitweb: http://git.kernel.org/linus/959b887cf42fd63cf10e28a7f26126f78aa1c0b0 Commit: 959b887cf42fd63cf10e28a7f26126f78aa1c0b0 Parent: 8d7773a32d8aa723030712b0a500a4a402a21c85 Author: Jesse Barnes <jbarnes@virtuousgeek.org> AuthorDate: Fri Mar 20 14:16:33 2009 -0700 Committer: Eric Anholt <eric@anholt.net> CommitDate: Wed Apr 1 11:07:49 2009 -0700 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 <jbarnes@virtuosugeek.org> Signed-off-by: Eric Anholt <eric@anholt.net> --- drivers/gpu/drm/i915/i915_gem.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 0abccb7..9f4eceb 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; -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
