aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs2010-03-18 19:17:19 -0500
committerBen Skeggs2010-03-18 19:19:12 -0500
commitdf32c307e8f81b46ee8aa4dd7222fc18f175bbb3 (patch)
tree7b55a33dba1b25943c4c60caca5a0f66eeb6d5bd /nouveau
parenta247fca8ba5759979607a514dbda4e4a63676889 (diff)
downloadlibdrm-df32c307e8f81b46ee8aa4dd7222fc18f175bbb3.tar.gz
libdrm-df32c307e8f81b46ee8aa4dd7222fc18f175bbb3.tar.xz
libdrm-df32c307e8f81b46ee8aa4dd7222fc18f175bbb3.zip
nouveau: fix segfault in nouveau_bo_new_tile() failure path
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nouveau/nouveau_bo.c b/nouveau/nouveau_bo.c
index 49736364..32b23b65 100644
--- a/nouveau/nouveau_bo.c
+++ b/nouveau/nouveau_bo.c
@@ -198,7 +198,7 @@ nouveau_bo_new_tile(struct nouveau_device *dev, uint32_t flags, int align,
198 if (flags & (NOUVEAU_BO_VRAM | NOUVEAU_BO_GART)) { 198 if (flags & (NOUVEAU_BO_VRAM | NOUVEAU_BO_GART)) {
199 ret = nouveau_bo_kalloc(nvbo, NULL); 199 ret = nouveau_bo_kalloc(nvbo, NULL);
200 if (ret) { 200 if (ret) {
201 nouveau_bo_ref(NULL, (void *)nvbo); 201 nouveau_bo_ref(NULL, (void *)&nvbo);
202 return ret; 202 return ret;
203 } 203 }
204 } 204 }