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 <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
This commit is contained in:
Mika Kuoppala 2012-10-03 17:15:27 +03:00 • committed by Daniel Vetter
commit 4d0f817e74

View file

@ -1409,6 +1409,7 @@ out:
case -ENOMEM:
return VM_FAULT_OOM;
default:
WARN_ON_ONCE(ret);
return VM_FAULT_SIGBUS;
}
}