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

Sharma, Swati2 swati2.sharma at intel.com
Fri May 13 07:00:59 UTC 2022


LGTM
Reviewed-by:
Swati Sharma <swati2.sharma at intel.com>

On 13-May-22 11:06 AM, Karthik B S wrote:
> 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);
>   	}
>   }

-- 
~Swati Sharma


More information about the igt-dev mailing list