aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2022-02-27 15:33:42 +0000
committerAlex Deucher <[email protected]>2022-03-02 23:40:05 +0000
commitca6fcfa8d4461c889636ef5dd51bdec96c6122bd (patch)
tree901d84db449ba9091a5085212ee8be2106f1f5df /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
parentdrm/amd/display: Reset VIC if HDMI_VIC is present (diff)
downloadkernel-ca6fcfa8d4461c889636ef5dd51bdec96c6122bd.tar.gz
kernel-ca6fcfa8d4461c889636ef5dd51bdec96c6122bd.zip
drm/amdgpu: Fix realloc of ptr
Clang static analysis reports this error amdgpu_debugfs.c:1690:9: warning: 1st function call argument is an uninitialized value tmp = krealloc_array(tmp, i + 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ realloc uses tmp, so tmp can not be garbage. And the return needs to be checked. Fixes: 5ce5a584cb82 ("drm/amdgpu: add debugfs for reset registers list") Reviewed-by: Christian König <[email protected]> Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h')
0 files changed, 0 insertions, 0 deletions