svga: fix context alloc error handling
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 22 Jan 2018 22:41:00 +0000 (15:41 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 23 Jan 2018 18:04:07 +0000 (11:04 -0700)
commit08085df3132fc7283b2a181221d748e6e4607812
treeb9eb37382983d687da8d09a89671eeef0b1ac227
parent4b4d929c27f1c395bb4ca6ef035dee7303ff5723
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>
src/gallium/drivers/svga/svga_context.c