Module: Mesa
Branch: master
Commit: 48bcb94dc375af17ceee14693c7cb3fdbb7e2151
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=48bcb94dc375af17ceee14693c7cb3fdbb7e2151

Author: Emil Velikov <emil.l.veli...@gmail.com>
Date:   Fri Apr 12 00:22:32 2013 +0100

nvc0: bail out early during nve4_compute_setup()

Exit gracefully rather than trying to create a random object, whenever the
chipset is unknown

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>

---

 src/gallium/drivers/nvc0/nve4_compute.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nve4_compute.c 
b/src/gallium/drivers/nvc0/nve4_compute.c
index 2550530..7ea61e8 100644
--- a/src/gallium/drivers/nvc0/nve4_compute.c
+++ b/src/gallium/drivers/nvc0/nve4_compute.c
@@ -51,7 +51,7 @@ nve4_screen_compute_setup(struct nvc0_screen *screen,
       break;
    default:
       NOUVEAU_ERR("unsupported chipset: NV%02x\n", dev->chipset);
-      break;
+      return -1;
    }
 
    ret = nouveau_object_new(chan, 0xbeef00c0, obj_class, NULL, 0,

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to