Commit fd5f14c1 authored by Zhu Jun's avatar Zhu Jun Committed by Takashi Iwai

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: b64678eb ("ALSA: scarlett2: Add DSP controls")
Signed-off-by: default avatarZhu Jun <zhujun2@cmss.chinamobile.com>
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20241009092305.8570-1-zhujun2@cmss.chinamobile.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c9bd4a82
...@@ -5613,6 +5613,8 @@ static int scarlett2_update_filter_values(struct usb_mixer_interface *mixer) ...@@ -5613,6 +5613,8 @@ static int scarlett2_update_filter_values(struct usb_mixer_interface *mixer)
info->peq_flt_total_count * info->peq_flt_total_count *
SCARLETT2_BIQUAD_COEFFS, SCARLETT2_BIQUAD_COEFFS,
peq_flt_values); peq_flt_values);
if (err < 0)
return err;
for (i = 0, dst_idx = 0; i < info->dsp_input_count; i++) { for (i = 0, dst_idx = 0; i < info->dsp_input_count; i++) {
src_idx = i * src_idx = i *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment