aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
diff options
context:
space:
mode:
authorGong Yuanjun <[email protected]>2022-05-17 09:57:00 +0000
committerAlex Deucher <[email protected]>2022-05-26 18:56:31 +0000
commita2b28708b645c5632dc93669ab06e97874c8244f (patch)
tree3342cfaf631482c58b00a4600b60a52aadd550a8 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
parentdrm/amdgpu/gfx10: rework KIQ programming (diff)
downloadkernel-a2b28708b645c5632dc93669ab06e97874c8244f.tar.gz
kernel-a2b28708b645c5632dc93669ab06e97874c8244f.zip
drm/radeon: fix a possible null pointer dereference
In radeon_fp_native_mode(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The failure status of drm_cvt_mode() on the other path is checked too. Signed-off-by: Gong Yuanjun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions