summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@intel.com>2012-10-03 17:15:27 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-04 10:33:42 +0200
commit4d0f817e7482969a31c2295a530c966f135faa7e (patch)
tree8a07cd1e6c5526b9b7465b6a946eb0e1278dddb1 /drivers/gpu
parente79e0fe380847493266fba557217e2773c61bd1b (diff)
downloadop-kernel-dev-4d0f817e7482969a31c2295a530c966f135faa7e.zip
op-kernel-dev-4d0f817e7482969a31c2295a530c966f135faa7e.tar.gz
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/gpu')
-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;
}
}
OpenPOWER on IntegriCloud