st/dri: don't call close(-1) in dri{2, kms_}_init_screen error path
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 14 May 2016 15:33:10 +0000 (16:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 May 2016 11:07:46 +0000 (12:07 +0100)
commit6e00a1e6cba7b32e575521c7a92aae18761e0a37
treed68ac1fe86c0b71a7a8e41941378105a54b750d1
parent7362bb3e219ec819835799c400cf4215a1b387d0
st/dri: don't call close(-1) in dri{2, kms_}_init_screen error path

Add separate labels and jump to the correct one as needed.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/state_trackers/dri/dri2.c