]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Return error from i915_gem_object_get_fence_reg() when failing.
authorEric Anholt <eric@anholt.net>
Tue, 27 Jan 2009 18:33:49 +0000 (10:33 -0800)
committerDave Airlie <airlied@linux.ie>
Sun, 8 Feb 2009 11:37:56 +0000 (21:37 +1000)
commite20d9fd54bdf85161e589538a80e7a1db68b3aff
treeee7b3f9b95f21d8489240578e42f35e6964bc952
parent4c95fb0d303b5e43015cd1c2f21d72cae357af0c
drm/i915: Return error from i915_gem_object_get_fence_reg() when failing.

Previously, the caller would continue along without knowing that the
function failed, resulting in potential mis-rendering.  Right now vm_fault
just returns SIGBUS in that case, and we may need to disable signal handling
to avoid that happening.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/i915_gem.c