diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-04 23:20:10 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-05-05 11:57:42 +0200 |
| commit | 86dc52c5c96e91f86b6e86dfe621ccc581d72b1d (patch) | |
| tree | e3fbe54ac0c2d400b87b4ff02fab07d56900ab23 /include/linux/debugobjects.h | |
| parent | 1ac8867734bb90e06f208d2bcb3c29281bdcce58 (diff) | |
ALSA: usb-audio: simplify mixer control name handling
In get_term_name(), remove hard-coded return values and a strlen() call,
and return the number of bytes copied by strscpy() directly.
Since get_term_name() may now return -E2BIG on string truncation, check
name_len < 0 and return early from get_connector_control_name() if
needed. Also replace strlcat() with strscpy().
Other get_term_name() callers only check the return value for non-zero
and are not affected by this change.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260504212008.147373-4-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
