Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260137
b: refs/heads/master
c: ad9ac43
h: refs/heads/master
i:
  260135: 4748413
v: v3
  • Loading branch information
Ben Skeggs committed Jun 23, 2011
1 parent 0fada2e commit d5a40e7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e41f26e7d18951086611bc78cc35e244bd01d1ca
refs/heads/master: ad9ac437a500f8c0822bd5fe139af8ee2c132e15
11 changes: 9 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/nouveau_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,18 @@ int
nouveau_mm_fini(struct nouveau_mm **prmm)
{
struct nouveau_mm *rmm = *prmm;
struct nouveau_mm_node *heap =
struct nouveau_mm_node *node, *heap =
list_first_entry(&rmm->nodes, struct nouveau_mm_node, nl_entry);

if (!list_is_singular(&rmm->nodes))
if (!list_is_singular(&rmm->nodes)) {
printk(KERN_ERR "nouveau_mm not empty at destroy time!\n");
list_for_each_entry(node, &rmm->nodes, nl_entry) {
printk(KERN_ERR "0x%02x: 0x%08x 0x%08x\n",
node->type, node->offset, node->length);
}
WARN_ON(1);
return -EBUSY;
}

kfree(heap);
kfree(rmm);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ nouveau_vm_del(struct nouveau_vm *vm)
list_for_each_entry_safe(vpgd, tmp, &vm->pgd_list, head) {
nouveau_vm_unlink(vm, vpgd->obj);
}
WARN_ON(nouveau_mm_fini(&vm->mm) != 0);

nouveau_mm_fini(&vm->mm);
kfree(vm->pgt);
kfree(vm);
}
Expand Down

0 comments on commit d5a40e7

Please sign in to comment.