diff options
author | Emil Velikov <[email protected]> | 2013-04-12 00:22:32 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-04-12 17:10:11 +0200 |
commit | 48bcb94dc375af17ceee14693c7cb3fdbb7e2151 (patch) | |
tree | 39a4a6b581f2d6e075d20b01e789611aa3da2638 /src | |
parent | e28c266682fe8ac1c6ba27a90802974c05c35dde (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 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, |