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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}