Skip to content

Commit a551cd6

Browse files
committed
drm/i915: Fix atomic state leak when resetting HDMI link
Atomic state needs to be put even if the commit was successful. Fixes: dba14b2 ("drm/i915: Reinitialize sink scrambling/TMDS clock ratio on HPD") Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Lyude Paul <lyude@redhat.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190302003349.19189-1-jose.souza@intel.com
1 parent 3e1d87d commit a551cd6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/i915/intel_ddi.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3984,12 +3984,7 @@ static int modeset_pipe(struct drm_crtc *crtc,
39843984
goto out;
39853985

39863986
ret = drm_atomic_commit(state);
3987-
if (ret)
3988-
goto out;
3989-
3990-
return 0;
3991-
3992-
out:
3987+
out:
39933988
drm_atomic_state_put(state);
39943989

39953990
return ret;

0 commit comments

Comments
 (0)