diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-10-21 18:21:39 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-21 22:26:34 -0400 |
commit | 0bab097a9b18d7ad1a65c9263b3f896fc1f4b6ff (patch) | |
tree | 45103f394717270c51ef21d94d5e7674c50dbec4 /drivers/gpu | |
parent | 92485cef52c2de0f98efdf527ea39cef2b9fc416 (diff) |
drm/nouveau: warn when trying to free mm which is still in use
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/core/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/core/mm.c b/drivers/gpu/drm/nouveau/core/core/mm.c index bfddf87926dd..4d6206448670 100644 --- a/drivers/gpu/drm/nouveau/core/core/mm.c +++ b/drivers/gpu/drm/nouveau/core/core/mm.c | |||
@@ -236,7 +236,7 @@ nouveau_mm_fini(struct nouveau_mm *mm) | |||
236 | int nodes = 0; | 236 | int nodes = 0; |
237 | 237 | ||
238 | list_for_each_entry(node, &mm->nodes, nl_entry) { | 238 | list_for_each_entry(node, &mm->nodes, nl_entry) { |
239 | if (nodes++ == mm->heap_nodes) | 239 | if (WARN_ON(nodes++ == mm->heap_nodes)) |
240 | return -EBUSY; | 240 | return -EBUSY; |
241 | } | 241 | } |
242 | 242 | ||