drm/amd/display: zeromem mypipe heap struct before using it
authorMartin Leung <Martin.Leung@amd.com>
Tue, 27 Sep 2022 22:13:38 +0000 (18:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Oct 2022 21:15:08 +0000 (17:15 -0400)
commit5ff32b52995155f91de582124485d0f0f8881363
tree7de6b5e9327c1c7048563fa483a894f9cecf792b
parenteae2331899f9dcc923d37d1d753f2de847c92359
drm/amd/display: zeromem mypipe heap struct before using it

[Why & How]
bug was caused when moving variable from stack to
heap because it was reusable and garbage was left
over, so we need to zero mem

Fixes: 7acc487ab57e ("drm/amd/display: reduce stack size in dcn32 dml (v2)")
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Martin Leung <Martin.Leung@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c