drm/amd/display: Free atomic state after drm_atomic_commit
authorVictor Lu <victorchengchi.lu@amd.com>
Thu, 14 Jan 2021 21:27:07 +0000 (16:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:11:55 +0000 (12:11 -0500)
commit2dc39051a7ba4d909992e5526ef2f0ad4e1b4770
tree4b1354d066da64a3c46d7beda427667a42db60ef
parentdc33e0aa3e6e270394af74be7a399286c0d7e5bf
drm/amd/display: Free atomic state after drm_atomic_commit

[why]
drm_atomic_commit was changed so that the caller must free their
drm_atomic_state reference on successes.

[how]
Add drm_atomic_commit_put after drm_atomic_commit call in
dm_force_atomic_commit.

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c