]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix uninitialized variables in dcn401
authorAlex Hung <alex.hung@amd.com>
Sat, 8 Jun 2024 02:03:31 +0000 (20:03 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:36 +0000 (17:10 -0400)
commit3bc73bc096e64752961060cdf9d460e0a6bb0e6b
tree72c46384f9a845628fdbd43973c4257b2fb0caa8
parent51dbe0239b1fc7c435867ce28e5eb4394b6641e1
drm/amd/display: Fix uninitialized variables in dcn401

[WHAT & HOW]
surf_linear_128_l/c are used in CalculateBytePerPixelAndBlockSizes
before they are assigned, so initializing them before passing them into
the function.

This fixes 2 UNINIT issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c