Skip to content

Commit

Permalink
drm/i915: i915_mutex_interruptible() returns -EINTR
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Chris Wilson committed Feb 11, 2011
1 parent 9db4a9c commit bed636a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
set_need_resched();
case 0:
case -ERESTARTSYS:
case -EINTR:
return VM_FAULT_NOPAGE;
case -ENOMEM:
return VM_FAULT_OOM;
Expand Down

0 comments on commit bed636a

Please sign in to comment.