drm/amd/display: Fix ref_count messed up issue
authorJerry Zuo <Jerry.Zuo@amd.com>
Mon, 25 Sep 2017 20:39:45 +0000 (16:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:43:57 +0000 (16:43 -0400)
commit60d671db1c0c02f31bcff3ea5dee244d26b8ed77
treeae910323b2d971f6873e0d57249cbfd4a06f7606
parent2e1cc334631849b035b24897d6be59d2a57b6f1c
drm/amd/display: Fix ref_count messed up issue

In the full update type, need to add ref_count to the newly
created dc_state->stream. It made mistake to add ref_count to
dc->current_state->stream which keeps adding up without release.

Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c