nouveau: fix segfault in nouveau_bo_new_tile() failure path
parent
a247fca8ba
commit
df32c307e8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue