Commit e5ad449b authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie

drm/mm: WARN for unclean mm takedown

The usual drm driver has tons of different drm_mm memory managers so the drm
error message in dmesg is pretty useless. WARN instead so that we have the full
backtrace.
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 2c54b133
...@@ -697,8 +697,8 @@ void drm_mm_takedown(struct drm_mm * mm) ...@@ -697,8 +697,8 @@ void drm_mm_takedown(struct drm_mm * mm)
{ {
struct drm_mm_node *entry, *next; struct drm_mm_node *entry, *next;
if (!list_empty(&mm->head_node.node_list)) { if (WARN(!list_empty(&mm->head_node.node_list),
DRM_ERROR("Memory manager not clean. Delaying takedown\n"); "Memory manager not clean. Delaying takedown\n")) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment