Commit 5aa72db7 authored by Corbin McElhanney's avatar Corbin McElhanney Committed by Alex Deucher
Browse files

drm/amd/display: Fix accessing freed memory

parent cbb4d72e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1714,8 +1714,11 @@ void dc_update_planes_and_stream(struct dc *dc,
	}

	if (core_dc->current_context != context) {
		dc_release_validate_context(core_dc->current_context);
		struct validate_context *old = core_dc->current_context;

		core_dc->current_context = context;
		dc_release_validate_context(old);

	}
	return;