nouveau: fix segfault in nouveau_bo_new_tile() failure path

main
Ben Skeggs 2010-03-19 10:17:19 +10:00
parent a247fca8ba
commit df32c307e8
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ nouveau_bo_new_tile(struct nouveau_device *dev, uint32_t flags, int align,
if (flags & (NOUVEAU_BO_VRAM | NOUVEAU_BO_GART)) {
ret = nouveau_bo_kalloc(nvbo, NULL);
if (ret) {
nouveau_bo_ref(NULL, (void *)nvbo);
nouveau_bo_ref(NULL, (void *)&nvbo);
return ret;
}
}