projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4d929
)
svga: fix context alloc error handling
author
Grazvydas Ignotas
<notasas@gmail.com>
Mon, 22 Jan 2018 22:41:00 +0000
(15:41 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 23 Jan 2018 18:04:07 +0000
(11:04 -0700)
'cleanup' path is dereferencing 'svga' a lot, 'done' is a better choice.
Found by Coccinelle.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_context.c
b/src/gallium/drivers/svga/svga_context.c
index af16a99b72cc36ae1a9b8230eff4f41af8dc2cdd..7b3e9e81f4cd00ba86480e024b73d9681f886aac 100644
(file)
--- 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);