diff options
author | Ilia Mirkin <[email protected]> | 2014-09-13 11:28:28 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-09-13 11:29:23 -0400 |
commit | 1d7b0d832c474582824d663a795213d2889a737b (patch) | |
tree | 3f99476924423963c6d719d57ffce711f4ea70c8 /src | |
parent | 2e86432cc1bda7ff4f196083455baf1fb9eae40c (diff) |
nouveau: check for mesa context init failure
Reported by Coverity
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index f8c8dc38701..5be5ec5bc24 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -126,8 +126,8 @@ nouveau_context_init(struct gl_context *ctx, gl_api api, nouveau_fbo_functions_init(&functions); /* Initialize the mesa context. */ - _mesa_initialize_context(ctx, api, visual, - share_ctx, &functions); + if (!_mesa_initialize_context(ctx, api, visual, share_ctx, &functions)) + return GL_FALSE; nouveau_state_init(ctx); nouveau_scratch_init(ctx); |