Re: [PATCH] drm/amd/display: Fix logger leak on perf trace allocation failure
From: Markus Elfring
Date: Mon Nov 16 2026 - 01:58:18 EST
…
> Free the logger before discarding dc_ctx and clear dc->dml.logger to avoid
> leaving a dangling alias after the failed construction.
Would there be a need to complete the exception handling also after a failed
link_create_link_service() call in the implementation of the function “dc_construct_ctx”?
https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/gpu/drm/amd/display/dc/core/dc.c#L990-L1037
How do you think about to avoid duplicate source code another bit?
Regards,
Markus