diff options
author | Wentao Liang <vulab@iscas.ac.cn> | 2025-02-13 10:45:43 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-02-14 10:45:09 +0300 |
commit | 822b7ec657e99b44b874e052d8540d8b54fe8569 (patch) | |
tree | dac57dfb60637485d2fe2ea75571075298b6a614 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 325735e83d7d0016e7b61069df2570e910898466 (diff) | |
download | linux-822b7ec657e99b44b874e052d8540d8b54fe8569.tar.xz |
ALSA: hda: Add error check for snd_ctl_rename_id() in snd_hda_create_dig_out_ctls()
Check the return value of snd_ctl_rename_id() in
snd_hda_create_dig_out_ctls(). Ensure that failures
are properly handled.
[ Note: the error cannot happen practically because the only error
condition in snd_ctl_rename_id() is the missing ID, but this is a
rename, hence it must be present. But for the code consistency,
it's safer to have always the proper return check -- tiwai ]
Fixes: 5c219a340850 ("ALSA: hda: Fix kctl->id initialization")
Cc: stable@vger.kernel.org # 6.4+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20250213074543.1620-1-vulab@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions