]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Check null values from functions
authorAlex Hung <alex.hung@amd.com>
Tue, 16 Jul 2024 20:58:06 +0000 (14:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:35:38 +0000 (17:35 -0400)
commit6eb1fe53ee94cffd7187844d08d46ba8659d667a
tree12d94d414b6c56a200048f6836ee895ce9c9b4cc
parentc3f15273721f2ee60d32fc7d4f2c233a1eff47a8
drm/amd/display: Check null values from functions

Functions get_per_method_common_meta and get_expanded_strategy_list can
return null and thus it is necessary to check their returned values
before dereferencing.

This fixes 3 NULL_RETURNS issues reported by Coverity.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c