virgl: close drm fd when destroying virgl screen.
authorLepton Wu <lepton@chromium.org>
Mon, 18 Mar 2019 23:40:25 +0000 (16:40 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Tue, 2 Apr 2019 22:29:47 +0000 (15:29 -0700)
commit250fffac152f3cbdbea505fc642e5f023c3f3b7e
tree702c674395ae8c1aaad59e204c8b26857189c6e2
parent08c44b47a984bd25d654ea89af5bc353d8270154
virgl: close drm fd when destroying virgl screen.

This fd was create in virgl_drm_screen_create and should be closed
in virgl_drm_screen_destroy.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c