summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
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/drm/i915
parente79e0fe380847493266fba557217e2773c61bd1b (diff)
downloadblackbird-op-linux-4d0f817e7482969a31c2295a530c966f135faa7e.tar.gz
blackbird-op-linux-4d0f817e7482969a31c2295a530c966f135faa7e.zip
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/drm/i915')
-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 5fa3419461c5..b55eee38af76 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