From 631255387f0469910db99eccbfbaa63345425739 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Tue, 17 Sep 2019 10:21:24 +0300 Subject: [PATCH] iris: close screen fd on iris_destroy_screen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Otherwise it never gets closed, this fixes errors seen with deqp-egl where we end up opening 1024 files. Fixes: 2dce0e94 ("iris: Initial commit of a new 'iris' driver for Intel Gen8+ GPUs.") Signed-off-by: Tapani Pälli Reviewed-by: Kenneth Graunke --- src/gallium/drivers/iris/iris_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 2e7cf9f4e59..d61993fbaff 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -525,6 +525,7 @@ iris_destroy_screen(struct pipe_screen *pscreen) u_transfer_helper_destroy(pscreen->transfer_helper); iris_bufmgr_destroy(screen->bufmgr); disk_cache_destroy(screen->disk_cache); + close(screen->fd); ralloc_free(screen); } -- 2.30.2