diff options
author | Lepton Wu <[email protected]> | 2019-03-18 16:40:25 -0700 |
---|---|---|
committer | Gurchetan Singh <[email protected]> | 2019-04-02 15:29:47 -0700 |
commit | 250fffac152f3cbdbea505fc642e5f023c3f3b7e (patch) | |
tree | 702c674395ae8c1aaad59e204c8b26857189c6e2 /src/gallium/winsys/virgl | |
parent | 08c44b47a984bd25d654ea89af5bc353d8270154 (diff) |
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 <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index 120e8eda2cd..2cf8b4ba076 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -972,6 +972,7 @@ virgl_drm_screen_destroy(struct pipe_screen *pscreen) if (destroy) { int fd = virgl_drm_winsys(screen->vws)->fd; util_hash_table_remove(fd_tab, intptr_to_pointer(fd)); + close(fd); } mtx_unlock(&virgl_screen_mutex); |