Skip to content

Commit fd5f14c

Browse files
Zhu Juntiwai
authored andcommitted
ALSA: scarlett2: Add error check after retrieving PEQ filter values
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>
1 parent c9bd4a8 commit fd5f14c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/usb/mixer_scarlett2.c

Lines changed: 2 additions & 0 deletions
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)