drm/amd/display: Check dce_hwseq before dereferencing it
authorAlex Hung <alex.hung@amd.com>
Wed, 4 Jun 2025 00:30:55 +0000 (18:30 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:20 +0000 (12:19 -0400)
commit79db43611ff61280b6de58ce1305e0b2ecf675ad
tree95757caa776cdb72f622e98fbb78f7da28011ad8
parent7948afb46af925830e1541ec33644ba8eecb15ed
drm/amd/display: Check dce_hwseq before dereferencing it

[WHAT]

hws was checked for null earlier in dce110_blank_stream, indicating hws
can be null, and should be checked whenever it is used.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c