diff options
author | Chris Wilson <chris.p.wilson@intel.com> | 2022-01-27 12:25:22 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-10-05 18:19:01 +0200 |
commit | 007ab069ddf0068b9fc2a5b9889cd08e63ce8ba7 (patch) | |
tree | dd2b2c5a6511cd9d8d1a54cb8f3e671d4e89d778 /tests/kms_hdmi_inject.c | |
parent | 97e6af4c7c0d9fdddc301e63457ba8cb1f2173d4 (diff) |
kms_hdmi_inject: Close device before exit
Close the device fd before we check for leaks during the atexit
handlers.
Signed-off-by: Chris Wilson <chris.p.wilson@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r-- | tests/kms_hdmi_inject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c index abae0ab44..b6418faf0 100644 --- a/tests/kms_hdmi_inject.c +++ b/tests/kms_hdmi_inject.c @@ -219,5 +219,6 @@ igt_main igt_fixture { drmModeFreeConnector(connector); + close(drm_fd); } } |