[Intel-gfx] [PATCH 1/3] drm/i915: Fix atomic state leak when resetting HDMI link

Lyude Paul lyude at redhat.com
Thu Mar 7 18:12:54 UTC 2019


Reviewed-by: Lyude Paul <lyude at redhat.com>

Does this patch/any of the other patches in this series need pushing?

On Fri, 2019-03-01 at 16:33 -0800, José Roberto de Souza wrote:
> Atomic state needs to be put even if the commit was successful.
> 
> Fixes: dba14b27dd3c ("drm/i915: Reinitialize sink scrambling/TMDS clock
> ratio on HPD")
> Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Lyude Paul <lyude at redhat.com>
> Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
> ---
>  drivers/gpu/drm/i915/intel_ddi.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c
> b/drivers/gpu/drm/i915/intel_ddi.c
> index d918be927fc2..34dd5823398a 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -3984,12 +3984,7 @@ static int modeset_pipe(struct drm_crtc *crtc,
>  		goto out;
>  
>  	ret = drm_atomic_commit(state);
> -	if (ret)
> -		goto out;
> -
> -	return 0;
> -
> - out:
> +out:
>  	drm_atomic_state_put(state);
>  
>  	return ret;
-- 
Cheers,
	Lyude Paul



More information about the Intel-gfx mailing list