From: Emil Velikov Date: Thu, 11 Apr 2013 23:22:32 +0000 (+0100) Subject: nvc0: bail out early during nve4_compute_setup() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48bcb94dc375af17ceee14693c7cb3fdbb7e2151;p=mesa.git 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 --- diff --git a/src/gallium/drivers/nvc0/nve4_compute.c b/src/gallium/drivers/nvc0/nve4_compute.c index 255053072e4..7ea61e809d1 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,