drm/amd/display: Fix memory corruption issue.
authorjimqu <Jim.Qu@amd.com>
Mon, 28 Nov 2016 00:05:46 +0000 (08:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:02:02 +0000 (17:02 -0400)
commitead964f24e111aa5ba6ec4c2ee15ae20f11a121a
tree24aab4f926cac5d31b52d579a02286704e71ca1e
parent8e545104aa05b5e0720fd2042e2f9729f9c13744
drm/amd/display: Fix memory corruption issue.

temp_flip_context is always same as current_context,
and the current_context will be freed in
dc_commit_targets(), but  temp_flip_context will be used in
dc_update_surfaces_for_target().

Signed-off-by: JimQu <Jim.Qu@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c