diff options
| author | Thorsten Blum <[email protected]> | 2025-08-10 21:41:05 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-08-12 11:05:56 +0000 |
| commit | dcb82900b12f5809e66835918d4043284ce1d39c (patch) | |
| tree | 013befaf7bb7c4de42e9e4982d9e97a0009151af /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | ASoC: tas2781: Fix spelling mistake "dismatch" -> "mismatch" (diff) | |
| download | kernel-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
