mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 18:20:11 +01:00
nouveau: fix segfault in nouveau_bo_new_tile() failure path
This commit is contained in:
parent
a247fca8ba
commit
df32c307e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue