summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-08-29 18:13:13 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2018-10-03 13:38:05 +0100
commit7b8d1b313cd01bb916898d8bb92a566534e37677 (patch)
tree2fef403a4a7e55202f8ba258f717790144fdfc0c /src/gallium/targets
parentfa9df82f67c7dda41bd3c9aab1487ec10fadca96 (diff)
st/nine: do not double-close the fd on teardown
As the newly introduced comment says: The pipe loader takes ownership of the fd Thus, there's no need to close it again. Cc: Patrick Rudolph <siro@das-labor.org> Cc: Axel Davy <davyaxel0@gmail.com> Cc: mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Axel Davy <davyaxel0@gmail.com>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/d3dadapter9/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c
index 85b3e10633e..a2a36dbbda9 100644
--- a/src/gallium/targets/d3dadapter9/drm.c
+++ b/src/gallium/targets/d3dadapter9/drm.c
@@ -107,7 +107,7 @@ drm_destroy( struct d3dadapter9_context *ctx )
if (drm->dev)
pipe_loader_release(&drm->dev, 1);
- close(drm->fd);
+ /* The pipe loader takes ownership of the fd */
FREE(ctx);
}