diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2025-02-13 15:45:43 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:30:22 -0800 |
| commit | cb2b6244e50c0c72f1b748554ece482b3bc8ac36 (patch) | |
| tree | 3fd98126c030168fcb27c2870d97fd3617006f44 /kernel/debug | |
| parent | da2ce0dfa2f9c773dd1a34c50073d3e4ead8e2e8 (diff) | |
| download | linux-cb2b6244e50c0c72f1b748554ece482b3bc8ac36.tar.gz linux-cb2b6244e50c0c72f1b748554ece482b3bc8ac36.tar.bz2 linux-cb2b6244e50c0c72f1b748554ece482b3bc8ac36.zip | |
ALSA: hda: Add error check for snd_ctl_rename_id() in snd_hda_create_dig_out_ctls()
commit 822b7ec657e99b44b874e052d8540d8b54fe8569 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
