diff options
author | 2020-04-08 09:30:21 -0400 | |
---|---|---|
committer | 2020-04-22 18:11:48 -0400 | |
commit | 9da3d050590952a329adce001d984f8417ab1182 (patch) | |
tree | 451333680e884844b46568b69ca183b3e911fd9e | |
parent | drm/amd/display: dmcu wait loop calculation is incorrect in RV (diff) | |
download | linux-dev-9da3d050590952a329adce001d984f8417ab1182.tar.xz linux-dev-9da3d050590952a329adce001d984f8417ab1182.zip |
drm/amd/display: destroy panel on link destruct
[Why]
without destroy it is causing a memory leak
[How]
destroy panel on link destruct
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Wyatt Wood <Wyatt.Wood@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 2e5a97190ce3..b38abd0c362a 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -88,6 +88,9 @@ static void dc_link_destruct(struct dc_link *link) if (link->ddc) dal_ddc_service_destroy(&link->ddc); + if (link->panel) + link->panel->funcs->destroy(&link->panel); + if (link->link_enc) link->link_enc->funcs->destroy(&link->link_enc); |