提交 4d0f817e 编写于 作者: M Mika Kuoppala 提交者: Daniel Vetter

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: NMika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 e79e0fe3
......@@ -1409,6 +1409,7 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
case -ENOMEM:
return VM_FAULT_OOM;
default:
WARN_ON_ONCE(ret);
return VM_FAULT_SIGBUS;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册