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:
|
||
|---|---|---|
| .. | ||
| amdgpu_dm.c | ||
| amdgpu_dm.h | ||
| amdgpu_dm_color.c | ||
| amdgpu_dm_crc.c | ||
| amdgpu_dm_crc.h | ||
| amdgpu_dm_debugfs.c | ||
| amdgpu_dm_debugfs.h | ||
| amdgpu_dm_hdcp.c | ||
| amdgpu_dm_hdcp.h | ||
| amdgpu_dm_helpers.c | ||
| amdgpu_dm_irq.c | ||
| amdgpu_dm_irq.h | ||
| amdgpu_dm_irq_params.h | ||
| amdgpu_dm_mst_types.c | ||
| amdgpu_dm_mst_types.h | ||
| amdgpu_dm_pp_smu.c | ||
| amdgpu_dm_psr.c | ||
| amdgpu_dm_psr.h | ||
| amdgpu_dm_services.c | ||
| amdgpu_dm_trace.h | ||
| dc_fpu.c | ||
| dc_fpu.h | ||
| Makefile | ||