aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-08-10 21:41:05 +0000
committerMark Brown <[email protected]>2025-08-12 11:05:56 +0000
commitdcb82900b12f5809e66835918d4043284ce1d39c (patch)
tree013befaf7bb7c4de42e9e4982d9e97a0009151af /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parentASoC: tas2781: Fix spelling mistake "dismatch" -> "mismatch" (diff)
downloadkernel-dcb82900b12f5809e66835918d4043284ce1d39c.tar.gz
kernel-dcb82900b12f5809e66835918d4043284ce1d39c.zip
ASoC: codecs: Call strscpy() with correct size argument
In aw8xxxx_profile_info(), strscpy() is called with the length of the source string "null" rather than the size of the destination buffer. This is fine as long as the destination buffer is larger than the source string, but we should still use the destination buffer size instead to call strscpy() as intended. And since 'name' points to the fixed-size buffer 'uinfo->value.enumerated.name', we can safely omit the size argument and let strscpy() infer it using sizeof() and remove 'name'. Signed-off-by: Thorsten Blum <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions