提交 0bab097a 编写于 作者: M Marcin Slusarz 提交者: Ben Skeggs

drm/nouveau: warn when trying to free mm which is still in use

Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 92485cef
...@@ -236,7 +236,7 @@ nouveau_mm_fini(struct nouveau_mm *mm) ...@@ -236,7 +236,7 @@ nouveau_mm_fini(struct nouveau_mm *mm)
int nodes = 0; int nodes = 0;
list_for_each_entry(node, &mm->nodes, nl_entry) { list_for_each_entry(node, &mm->nodes, nl_entry) {
if (nodes++ == mm->heap_nodes) if (WARN_ON(nodes++ == mm->heap_nodes))
return -EBUSY; return -EBUSY;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册