]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix null pointer deref when plugging in display
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Fri, 8 Oct 2021 20:07:45 +0000 (16:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Oct 2021 18:14:35 +0000 (14:14 -0400)
commitf2cf352444499dad2eb5e04ece3cf882db34a791
tree7c1b9264be46a568441a55c497fb463ab3f033a4
parent3d3f372da5f84311db8926a6cb1321d6d423a84d
drm/amd/display: fix null pointer deref when plugging in display

[Why&How]
When system boots in headless mode, connecting a 4k display creates a
null pointer dereference due to hubp for a certain plane being null.
Add a condition to check for null hubp before dereferencing it.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c