From: Chris Wilson Date: Fri, 31 Jan 2014 11:34:57 +0000 (+0000) Subject: drm/i915: Convert EFAULT into a silent SIGBUS X-Git-Tag: MMI-PSA29.97-13-9~12412^2~62^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45d678173ad1ab4c3e2f8870e40aa3194bf3763d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Convert EFAULT into a silent SIGBUS EFAULT will be a possible return code where backing storage is transient, such after it is purged by madvise. As such it is to be expected and so should not trigger a WARN inside i915_gem_fault() but be converted silently to SIGBUS. Signed-off-by: Chris Wilson Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 4054ce47a805..a6c9f2e4543c 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -1453,6 +1453,7 @@ out: ret = VM_FAULT_OOM; break; case -ENOSPC: + case -EFAULT: ret = VM_FAULT_SIGBUS; break; default: