Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 0a3bfe9

Browse files
Zhu Jungregkh
Zhu Jun
authored andcommitted
ALSA: scarlett2: Add error check after retrieving PEQ filter values
commit fd5f14c upstream. Add error check after retrieving PEQ filter values in scarlett2_update_filter_values that ensure function returns error if PEQ filter value retrieval fails. Fixes: b64678e ("ALSA: scarlett2: Add DSP controls") Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Cc: <stable@vger.kernel.org> Link: https://patch.msgid.link/20241009092305.8570-1-zhujun2@cmss.chinamobile.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ee37189 commit 0a3bfe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/usb/mixer_scarlett2.c

+2
Original file line numberDiff line numberDiff line change
@@ -5613,6 +5613,8 @@ static int scarlett2_update_filter_values(struct usb_mixer_interface *mixer)
56135613
info->peq_flt_total_count *
56145614
SCARLETT2_BIQUAD_COEFFS,
56155615
peq_flt_values);
5616+
if (err < 0)
5617+
return err;
56165618

56175619
for (i = 0, dst_idx = 0; i < info->dsp_input_count; i++) {
56185620
src_idx = i *

0 commit comments

Comments
 (0)