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:
Grazvydas Ignotas 2018-01-22 15:41:00 -07:00 committed by Brian Paul
parent 4b4d929c27
commit 08085df313

View file

@ -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);