]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Guard against ddc_pin being NULL for AUX
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 9 Jun 2022 17:30:42 +0000 (13:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:13:27 +0000 (16:13 -0400)
commit01eb5cdac30260d2230b38c19cab5d935df394d9
tree103ada3d15e68421d06635373cf45f11dfd59d7f
parent6880de58cc123e433b8353c3cb06201463630ad0
drm/amd/display: Guard against ddc_pin being NULL for AUX

[Why]
In the case where we don't support DMUB aux but we have DPIA links
in the configuration we might try to message AUX using the legacy
path - where DDC pin is NULL. This causes a NULL pointer dereference.

[How]
Guard against NULL DDC pin, return a failure for aux engine acquire.

Reviewed-by: Michael Strauss <Michael.Strauss@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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/dce/dce_aux.c