]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Check null pointers before using them
authorAlex Hung <alex.hung@amd.com>
Thu, 27 Jun 2024 23:38:16 +0000 (17:38 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:11 +0000 (17:07 -0400)
commit1ff12bcd7deaeed25efb5120433c6a45dd5504a8
tree6337db4fcca1313897c77416b5c795e5ed360db6
parent5559598742fb4538e4c51c48ef70563c49c2af23
drm/amd/display: Check null pointers before using them

[WHAT & HOW]
These pointers are null checked previously in the same function,
indicating they might be null as reported by Coverity. As a result,
they need to be checked when used again.

This fixes 3 FORWARD_NULL issue reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@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/amdgpu_dm/amdgpu_dm.c