drm/amd/display: Free phantom plane and stream properly
authorAlvin Lee <Alvin.Lee2@amd.com>
Fri, 12 Aug 2022 03:24:19 +0000 (23:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:34:40 +0000 (13:34 -0400)
commitb68ea8af4ae005df5ca4f547f22b3824d0fcb3a4
tree2217d542f7551c03a40cba92be1e9978f072ef64
parente6cf22ef5fae493a99e162c3f2e7233448d2b970
drm/amd/display: Free phantom plane and stream properly

[Description]
Refcount is incremented on allocation and
when adding to the context. Therefore we must
release the phantom plane and stream after
removing from the context.

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c