[Nouveau] [PATCH] add missing return in nv50_accel_init failure path

Marcin Slusarz marcin.slusarz at gmail.com
Sun Nov 6 11:32:08 PST 2011


---
 src/nv50_accel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/nv50_accel.c b/src/nv50_accel.c
index d6c7528..ca06d8a 100644
--- a/src/nv50_accel.c
+++ b/src/nv50_accel.c
@@ -102,6 +102,7 @@ NVAccelInitNV50TCL(ScrnInfoPtr pScrn)
 					   &pNv->vblank_sem)) {
 			nouveau_grobj_free(&pNv->NvSW);
 			nouveau_grobj_free(&pNv->Nv3D);
+			return FALSE;
 		}
 
 		if (nouveau_bo_new(pNv->dev, NOUVEAU_BO_VRAM, 0, 65536,
-- 
1.7.7



More information about the Nouveau mailing list