diff options
author | Emil Velikov <[email protected]> | 2018-08-29 18:13:13 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-03 13:38:05 +0100 |
commit | 7b8d1b313cd01bb916898d8bb92a566534e37677 (patch) | |
tree | 2fef403a4a7e55202f8ba258f717790144fdfc0c /src/gallium | |
parent | fa9df82f67c7dda41bd3c9aab1487ec10fadca96 (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.c | 2 |
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); } |