summaryrefslogtreecommitdiff
path: root/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-03-19 10:17:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-03-19 10:19:12 +1000
commitdf32c307e8f81b46ee8aa4dd7222fc18f175bbb3 (patch)
tree7b55a33dba1b25943c4c60caca5a0f66eeb6d5bd /nouveau
parenta247fca8ba5759979607a514dbda4e4a63676889 (diff)
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,
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;
}
}