]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Add null checker before access structs
authorAlex Hung <alex.hung@amd.com>
Tue, 4 Jun 2024 00:06:08 +0000 (18:06 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:44:02 +0000 (12:44 -0400)
commit0fd146067d1b1aa9e531c8e69357f1be46f1a17a
tree18899b3e746afaf1486c8ae2a383acc6223043e8
parentc4d31653c03b90e51515b1380115d1aedad925dd
drm/amd/display: Add null checker before access structs

Checks null pointer before accessing various structs.

This fixes 5 NULL_RETURNS issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_utils.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c