diff options
author | 2023-04-26 12:24:12 -0700 | |
---|---|---|
committer | 2023-06-09 09:25:59 -0400 | |
commit | 44407010ce7f524e4f68aa25f9250a9cf9e4410c (patch) | |
tree | 1bbe2a496e901593b74ecd27f1d111e94fca2f20 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | drm/amd/amdgpu: Fix style problems in amdgpu_debugfs.c (diff) | |
download | wireguard-linux-44407010ce7f524e4f68aa25f9250a9cf9e4410c.tar.xz wireguard-linux-44407010ce7f524e4f68aa25f9250a9cf9e4410c.zip |
drm/amd/display: Fix possible NULL dereference in dc_dmub_srv_cmd_run_list()
We have a NULL check for 'dc_dmub_srv' in dc_dmub_srv_cmd_run_list()
but we are dereferencing it before checking.
Fix this moving the dereference next to NULL check.
This issue is found with Smatch(static analysis tool).
Fixes: e97cc04fe0fb ("drm/amd/display: refactor dmub commands into single function")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
0 files changed, 0 insertions, 0 deletions