linux/drivers/gpu/drm/amd/display
José Expósito 978ffac878 drm/amd/display: invalid parameter check in dmub_hpd_callback
The function performs a check on the "adev" input parameter, however, it
is used before the check.

Initialize the "dev" variable after the sanity check to avoid a possible
NULL pointer dereference.

Fixes: e27c41d5b0 ("drm/amd/display: Support for DMUB HPD interrupt handling")
Addresses-Coverity-ID: 1493909 ("Null pointer dereference")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-11 15:44:27 -05:00
..
amdgpu_dm drm/amd/display: invalid parameter check in dmub_hpd_callback 2022-01-11 15:44:27 -05:00
dc drm/amd/display: reset dcn31 SMU mailbox on failures 2022-01-11 15:44:27 -05:00
dmub drm/amd/display: [FW Promotion] Release 0.0.98 2021-12-30 08:54:44 -05:00
include drm/amd/display: Enable DSC over eDP 2021-11-22 14:45:01 -05:00
modules drm/amd/display: unhard code link to phy idx mapping in dc link and clean up 2022-01-07 17:21:20 -05:00
Kconfig drm/amdgpu/display: fix dependencies for DRM_AMD_DC_SI 2021-10-05 10:55:41 -04:00
Makefile
TODO