summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-11 20:31:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-02-11 20:32:44 +0000
commitbed636abeaa3d8e8279e95380cb10ecb20d1b276 (patch)
treeebbd4a435ffcf0d553441bc1e78d23bd8f949335 /drivers/gpu/drm/i915/i915_gem.c
parent9db4a9c7b2a3bd5b4952846bc0c2f58daa80ddd7 (diff)
downloadlwn-bed636abeaa3d8e8279e95380cb10ecb20d1b276.tar.gz
lwn-bed636abeaa3d8e8279e95380cb10ecb20d1b276.zip
drm/i915: i915_mutex_interruptible() returns -EINTR
... so we handle that for i915_gem_fault() in the same manner as ERESTARTSYS, or we send a SIGBUS to the faulting application. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
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 9297143447cf..a8768e2bbebc 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1230,6 +1230,7 @@ out:
set_need_resched();
case 0:
case -ERESTARTSYS:
+ case -EINTR:
return VM_FAULT_NOPAGE;
case -ENOMEM:
return VM_FAULT_OOM;