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)
commit959b887cf42fd63cf10e28a7f26126f78aa1c0b0
tree429d3c7c3bb4fb26b0130fe2d8cbdd59e146bb86
parent8d7773a32d8aa723030712b0a500a4a402a21c85
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