Re: [PATCH] ASoC: codecs: tx-macro: Fix for KASAN: slab-out-of-bounds

From: Srinivas Kandagatla
Date: Fri Mar 03 2023 - 09:15:53 EST




On 03/03/2023 12:57, Ravulapati Vishnu Vardhan Rao wrote:
@@ -1064,9 +1064,10 @@ static int tx_macro_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
struct snd_soc_component *component = dai->component;
- u32 decimator, sample_rate;
+ u32 sample_rate;
int tx_fs_rate;
struct tx_macro *tx = snd_soc_component_get_drvdata(component);
+ u8 decimator = 0;
Minor nit, any reason why decimator is intialized as part of this change.

--srini