diff mbox

[2/3] drm/i915: print kernel warning if vmi915_gem_fault returns with error

Message ID 1349270822-29740-2-git-send-email-mika.kuoppala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mika Kuoppala Oct. 3, 2012, 1:27 p.m. UTC
From: Mika Kuoppala <mika.kuoppala@intel.com>

Be more verbose when vmi915_gem_fault returns with VM_FAULT_SIGBUS

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 18d9abb..7949e4f 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1166,6 +1166,7 @@  out:
 	case -ENOMEM:
 		return VM_FAULT_OOM;
 	default:
+		WARN_ON(ret);
 		return VM_FAULT_SIGBUS;
 	}
 }