From df32c307e8f81b46ee8aa4dd7222fc18f175bbb3 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 19 Mar 2010 10:17:19 +1000 Subject: nouveau: fix segfault in nouveau_bo_new_tile() failure path --- nouveau/nouveau_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3