Commit 6b8701be authored by Konstantin Meskhidze's avatar Konstantin Meskhidze Committed by Alex Deucher

drm: amd: display: Fix memory leakage

This commit fixes memory leakage in dc_construct_ctx() function.
Signed-off-by: default avatarKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2ab21bb9
......@@ -871,6 +871,7 @@ static bool dc_construct_ctx(struct dc *dc,
dc_ctx->perf_trace = dc_perf_trace_create();
if (!dc_ctx->perf_trace) {
kfree(dc_ctx);
ASSERT_CRITICAL(false);
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment