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 22:44:18 +0000 (17:44 -0500)
commit2abaa323d744011982b20b8f3886184d56d23946
tree8a114f720773eb770cc15e974a03f35c44a36ae4
parent3ddc818d9bb877c64f5c649beab97af86c403702
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