aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorRodrigo Siqueira <rodrigo.siqueira@amd.com>2024-05-29 08:57:02 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-06-14 16:17:17 -0400
commit9d8152cd1be1c1049dc7d70e2f0a01989d1d9a17 (patch)
tree24b4470b71aa58738a7d7e95ab3e26fb3c6a6e33 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentdrm/amd/display: Disable DMCUB timeout for DCN35 (diff)
downloadlinux-rng-9d8152cd1be1c1049dc7d70e2f0a01989d1d9a17.tar.xz
linux-rng-9d8152cd1be1c1049dc7d70e2f0a01989d1d9a17.zip
drm/amd/display: Check otg_master pointer before use it
Coverity highlighted that the parameter otg_master is referenced before the if condition that validates it, which means that the code might have some attempt to access a null pointer. This commit addresses this issue by moving the pointer verification to the beginning of the function and initializing all the values right after it. Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions