linux/sound/soc/codecs/aw88395
Thorsten Blum dcb82900b1
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 <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250810214144.1985-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-08-12 12:05:56 +01:00
..
aw88395.c ASoC: codecs: Call strscpy() with correct size argument 2025-08-12 12:05:56 +01:00
aw88395.h
aw88395_data_type.h
aw88395_device.c ASoC: codecs: Use min() to simplify aw_dev_dsp_update_container() 2025-04-30 09:38:24 +09:00
aw88395_device.h ASoC: codecs: Add calibration function to aw88399 chip 2025-06-29 22:12:12 +01:00
aw88395_lib.c ASoC: codecs: aw88395: Fix spelling mistake "unsupport" -> "unsupported" 2024-09-30 01:10:57 +02:00
aw88395_lib.h
aw88395_reg.h