summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-08-29 18:13:13 +0100
committerEmil Velikov <[email protected]>2018-10-03 13:38:05 +0100
commit7b8d1b313cd01bb916898d8bb92a566534e37677 (patch)
tree2fef403a4a7e55202f8ba258f717790144fdfc0c /src/gallium
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 <[email protected]> Cc: Axel Davy <[email protected]> Cc: [email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium')
-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);
}