summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2018-01-22 15:41:00 -0700
committerBrian Paul <[email protected]>2018-01-23 11:04:07 -0700
commit08085df3132fc7283b2a181221d748e6e4607812 (patch)
treeb9eb37382983d687da8d09a89671eeef0b1ac227 /src/gallium
parent4b4d929c27f1c395bb4ca6ef035dee7303ff5723 (diff)
svga: fix context alloc error handling
'cleanup' path is dereferencing 'svga' a lot, 'done' is a better choice. Found by Coccinelle. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index af16a99b72c..7b3e9e81f4c 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -134,7 +134,7 @@ svga_context_create(struct pipe_screen *screen, void *priv, unsigned flags)
svga = CALLOC_STRUCT(svga_context);
if (!svga)
- goto cleanup;
+ goto done;
LIST_INITHEAD(&svga->dirty_buffers);