[igt-dev] [PATCH i-g-t v2 1/2] tests/i915/i915_pm_lpsp : Close fd after igt_display_fini execution.

Karthik B S karthik.b.s at intel.com
Fri Mar 11 04:43:11 UTC 2022


On 9/8/2021 11:40 PM, Mohammed Thasleem wrote:
> Close fd after igt_display_fini to avoid bad fd failure.
>
> Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/i915/i915_pm_lpsp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
> index b3b1561e..3ad8b260 100644
> --- a/tests/i915/i915_pm_lpsp.c
> +++ b/tests/i915/i915_pm_lpsp.c
> @@ -210,7 +210,7 @@ igt_main
>   
>   	igt_fixture {
>   		free(data.pwr_dmn_info);
> -		close(data.drm_fd);
>   		igt_display_fini(&data.display);
> +		close(data.drm_fd);
>   	}
>   }




More information about the igt-dev mailing list