]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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 17:13:43 +0000 (13:13 -0400)
commitb669507b637eb6b1aaecf347f193efccc65d756e
tree4cdc9b73321593b84fca4b5b6aaa357161477044
parent46e15197b513e60786a44107759d6ca293d6288c
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>
(cherry picked from commit 79db43611ff61280b6de58ce1305e0b2ecf675ad)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c