]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: es1968: Add error handling for snd_pcm_hw_constraint_pow2()
authorWentao Liang <vulab@iscas.ac.cn>
Wed, 14 May 2025 09:24:44 +0000 (17:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:08:25 +0000 (14:08 +0200)
commit9a51bc522442133f0b8b7ecdb4bc5d74c20bc50e
tree3ca386c3c0a69ac1e04885feb97fd5e1f0e9ace5
parentd993895c11c428cc63d61f488f1c7a136125521c
ALSA: es1968: Add error handling for snd_pcm_hw_constraint_pow2()

commit 9e000f1b7f31684cc5927e034360b87ac7919593 upstream.

The function snd_es1968_capture_open() calls the function
snd_pcm_hw_constraint_pow2(), but does not check its return
value. A proper implementation can be found in snd_cx25821_pcm_open().

Add error handling for snd_pcm_hw_constraint_pow2() and propagate its
error code.

Fixes: b942cf815b57 ("[ALSA] es1968 - Fix stuttering capture")
Cc: stable@vger.kernel.org # v2.6.22
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20250514092444.331-1-vulab@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/es1968.c