diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 302a10c86afb7525909df62360966f6d3ec95021..4fed2f25cd96341ec5a07f1951ed41df9f51e860 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1046,6 +1046,9 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc) core_dc->hwss.set_bandwidth(core_dc, context, true); resource_validate_ctx_destruct(core_dc->current_context); + if (core_dc->current_context) + dm_free(core_dc->current_context); + core_dc->current_context = context; return true;