[igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Close fd after igt_display_fini

Karthik B S karthik.b.s at intel.com
Fri May 13 05:36:15 UTC 2022


Close fd after igt_display_fini to avoid bad fd failure.

Signed-off-by: Karthik B S <karthik.b.s at intel.com>
---
 tests/kms_dp_tiled_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_dp_tiled_display.c
index f030254d..8f503e40 100644
--- a/tests/kms_dp_tiled_display.c
+++ b/tests/kms_dp_tiled_display.c
@@ -497,8 +497,8 @@ igt_main
 	#endif
 	igt_fixture {
 		free(data.conns);
-		close(data.drm_fd);
 		kmstest_restore_vt_mode();
 		igt_display_fini(data.display);
+		close(data.drm_fd);
 	}
 }
-- 
2.22.0



More information about the igt-dev mailing list