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

Author: Grazvydas Ignotas <[email protected]>
Date:   Mon Jan 22 15:41:00 2018 -0700

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]>

---

 src/gallium/drivers/svga/svga_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_context.c 
b/src/gallium/drivers/svga/svga_context.c
index af16a99b72..7b3e9e81f4 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);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to