summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@intel.com>2012-10-03 14:15:27 (GMT)
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-04 08:33:42 (GMT)
commit4d0f817e7482969a31c2295a530c966f135faa7e (patch)
tree8a07cd1e6c5526b9b7465b6a946eb0e1278dddb1 /drivers
parente79e0fe380847493266fba557217e2773c61bd1b (diff)
downloadlinux-fsl-qoriq-4d0f817e7482969a31c2295a530c966f135faa7e.tar.xz
drm/i915: print warning if vmi915_gem_fault error is not handled
Falling into default case in vmi915_gem_fault is a bug. Be more verbose about it. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-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 5fa3419..b55eee3 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1409,6 +1409,7 @@ out:
case -ENOMEM:
return VM_FAULT_OOM;
default:
+ WARN_ON_ONCE(ret);
return VM_FAULT_SIGBUS;
}
}