Skip to content

Commit c8c16f5

Browse files
zehortigozarodrigovivi
authored andcommitted
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 (cherry picked from commit a551cd6) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent a89c096 commit c8c16f5

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
@@ -3969,12 +3969,7 @@ static int modeset_pipe(struct drm_crtc *crtc,
39693969
goto out;
39703970

39713971
ret = drm_atomic_commit(state);
3972-
if (ret)
3973-
goto out;
3974-
3975-
return 0;
3976-
3977-
out:
3972+
out:
39783973
drm_atomic_state_put(state);
39793974

39803975
return ret;

0 commit comments

Comments
 (0)