mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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 <notasas@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
4b4d929c27
commit
08085df313
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue