Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bab097a authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Ben Skeggs
Browse files

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

parent 92485cef
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}