st/dri: Don't close the drm fd on failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Oct 2015 23:45:13 +0000 (00:45 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:20 +0000 (12:52 +0000)
commit13bccee87d6344ec7932b42de3fe3a2d10d30d96
tree9187ca88a182170ef745c9b19ba7a4b653e32b4a
parentb7f5c2ee48a8e386a891996ca83eb56fdc21229e
st/dri: Don't close the drm fd on failure

Ported from an identically named commit in st/xa

commit 35cf3831d71770211f29da6608313dc1f6213d7b
Author: Thomas Hellstrom <thellstrom@vmware.com>
Date:   Thu Jul 3 02:07:36 2014 -0700

    st/xa: Don't close the drm fd on failure v2

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/state_trackers/dri/dri2.c