Commit 9da3d050 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher
Browse files

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: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarWyatt Wood <Wyatt.Wood@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7fc5c319
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);