linux-xiaomi-chiron/drivers/gpu/drm/amd/display/amdgpu_dm
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.c drm/amd/display: invalid parameter check in dmub_hpd_callback 2022-01-11 15:44:27 -05:00
amdgpu_dm.h drm/amd/display: introduce mpo detection flags 2022-01-07 17:21:53 -05:00
amdgpu_dm_color.c drm/amd: fix improper docstring syntax 2021-12-13 16:32:34 -05:00
amdgpu_dm_crc.c drm/amd/display: add connector type check for CRC source set 2021-12-01 17:08:47 -05:00
amdgpu_dm_crc.h
amdgpu_dm_debugfs.c Merge tag 'amd-drm-next-5.17-2021-12-16' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-12-23 11:55:28 +10:00
amdgpu_dm_debugfs.h
amdgpu_dm_hdcp.c
amdgpu_dm_hdcp.h
amdgpu_dm_helpers.c drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi 2021-12-07 13:13:07 -05:00
amdgpu_dm_irq.c
amdgpu_dm_irq.h
amdgpu_dm_irq_params.h
amdgpu_dm_mst_types.c drm/amd/display: Allow DSC on supported MST branch devices 2021-12-01 17:04:42 -05:00
amdgpu_dm_mst_types.h
amdgpu_dm_pp_smu.c
amdgpu_dm_psr.c drm/amd/display: parse and check PSR SU caps 2021-12-14 16:07:53 -05:00
amdgpu_dm_psr.h
amdgpu_dm_services.c
amdgpu_dm_trace.h
dc_fpu.c
dc_fpu.h
Makefile