OSDN Git Service

drm/amd/display: Zeromem mypipe heap struct before using it
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 20 Oct 2022 21:26:24 +0000 (17:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:25:27 +0000 (17:25 -0500)
commita1b6667ef90b38e2480d96f11414fcb923c13ba2
tree3f88652157cea85e89667d906736ec3b171050bd
parentb17710f42d4b57fa2353b1aeff02920c9560e2e7
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.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Martin Leung <Martin.Leung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c