Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bed636ab authored by Chris Wilson's avatar Chris Wilson
Browse files

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: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 9db4a9c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;