nv30: check nouveau_bo_map output of notify bo
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 23 May 2015 23:07:48 +0000 (19:07 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 23 May 2015 23:10:07 +0000 (19:10 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv30/nv30_screen.c

index 025cad28042a28e89adcb64dcf60e44eb9479bd9..bb79ccc538f518239062dd77fe7b230fd332b15d 100644 (file)
@@ -524,7 +524,7 @@ nv30_screen_create(struct nouveau_device *dev)
 
    ret = nouveau_bo_wrap(screen->base.device, fifo->notify, &screen->notify);
    if (ret == 0)
-      nouveau_bo_map(screen->notify, 0, screen->base.client);
+      ret = nouveau_bo_map(screen->notify, 0, screen->base.client);
    if (ret)
       FAIL_SCREEN_INIT("error mapping notifier memory: %d\n", ret);