From fcaa2c5efaaa133fd35d6c6a6de3c3fb04e5b1ab Mon Sep 17 00:00:00 2001 From: Bhanuprakash Modem Date: Mon, 26 Jun 2023 10:40:26 +0530 Subject: tests/kms: Use drm_close_driver() to close the drm fd To close the drm file descriptor, use igt helper drm_close_driver() instead of using close(). V2: - New patch for chamelium tests Signed-off-by: Bhanuprakash Modem Reviewed-by: Kamil Konieczny --- tests/kms_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_atomic.c') diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c index 037db2d36..b65045abc 100644 --- a/tests/kms_atomic.c +++ b/tests/kms_atomic.c @@ -1460,6 +1460,6 @@ igt_main igt_remove_fb(display.drm_fd, &fb); igt_display_fini(&display); - close(display.drm_fd); + drm_close_driver(display.drm_fd); } } -- cgit v1.2.3