]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Check null pointer before try to access it
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 31 Jul 2024 09:04:44 +0000 (17:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:32:56 +0000 (10:32 -0400)
commit66e2d2d9a59f896def82a1c8684368be45cf4c06
tree7819602cc888fab1191875ec91a7fa5bf13e23e8
parent1b686053c06ffb9f4524b288110cf2a831ff7a25
drm/amd/display: Check null pointer before try to access it

[why & how]
Make sure plane_state is not null before calling a function
that dereferences it. Besides, remove redundant codes.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/hwss/dcn20/dcn20_hwseq.c