]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: Fix a NULL pointer dereference in dcn20_hwseq.c
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 20 Jan 2026 22:40:07 +0000 (22:40 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Feb 2026 21:40:06 +0000 (16:40 -0500)
commit9d6bd60695806782bec8562ab73aefafce067f05
tree3152c116daf6fd6f2f5f8fdb9c110378b10abf77
parente121ccca8a4a5dd6fb5d395de6ef31ebfce7fb38
drm/amd/display: Fix a NULL pointer dereference in dcn20_hwseq.c

[why]
hws->funcs.dccg_init is accessed without checking if it is NULL, which
may lead to a NULL pointer dereference.

[how]
Add a NULL check before calling dccg_init.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan 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