aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorRodrigo Campos <[email protected]>2024-02-18 19:51:05 +0000
committerThomas Weißschuh <[email protected]>2024-04-10 21:19:02 +0000
commitfbffce819e5ac151e137f881b89a9c1da0ebb76c (patch)
tree70547087330d00a1d215f4d01f018ac0988f5099 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parenttools/nolibc: Fix strlcat() return code and size usage (diff)
downloadkernel-fbffce819e5ac151e137f881b89a9c1da0ebb76c.tar.gz
kernel-fbffce819e5ac151e137f881b89a9c1da0ebb76c.zip
tools/nolibc: Fix strlcpy() return code and size usage
The return code should always be strlen(src), and we should copy at most size-1 bytes. While we are there, make sure to null-terminate the dst buffer if we copied something. Signed-off-by: Rodrigo Campos <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions