Loading dsp/q6afe.c +8 −0 Original line number Diff line number Diff line Loading @@ -7901,6 +7901,14 @@ static int afe_sidetone_iir(u16 tx_port_id) pr_debug("%s: adding 2 to size:%d\n", __func__, size); size = size + 2; } if (size > MAX_SIDETONE_IIR_DATA_SIZE) { pr_err("%s: iir_config size is out of bounds:%d\n", __func__, size); mutex_unlock(&this_afe.cal_data[cal_index]->lock); ret = -EINVAL; goto done; } memcpy(&filter_data.iir_config, &st_iir_cal_info->iir_config, size); mutex_unlock(&this_afe.cal_data[cal_index]->lock); Loading Loading
dsp/q6afe.c +8 −0 Original line number Diff line number Diff line Loading @@ -7901,6 +7901,14 @@ static int afe_sidetone_iir(u16 tx_port_id) pr_debug("%s: adding 2 to size:%d\n", __func__, size); size = size + 2; } if (size > MAX_SIDETONE_IIR_DATA_SIZE) { pr_err("%s: iir_config size is out of bounds:%d\n", __func__, size); mutex_unlock(&this_afe.cal_data[cal_index]->lock); ret = -EINVAL; goto done; } memcpy(&filter_data.iir_config, &st_iir_cal_info->iir_config, size); mutex_unlock(&this_afe.cal_data[cal_index]->lock); Loading