drm/i915: print warning if vmi915_gem_fault error is not handled
authorMika Kuoppala <mika.kuoppala@intel.com>
Wed, 3 Oct 2012 14:15:27 +0000 (17:15 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Oct 2012 08:33:42 +0000 (10:33 +0200)
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>
drivers/gpu/drm/i915/i915_gem.c

index 5fa3419461c5ddb46fa2b70b797b8c4ad3567e59..b55eee38af7687a0182cb9a887c495aa94119bc5 100644 (file)
@@ -1409,6 +1409,7 @@ out:
        case -ENOMEM:
                return VM_FAULT_OOM;
        default:
+               WARN_ON_ONCE(ret);
                return VM_FAULT_SIGBUS;
        }
 }