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

From: VISHNUVARDHAN RAO RAVULAPATI
Date: Fri Mar 03 2023 - 12:33:47 EST



On 3/3/2023 7:45 PM, Srinivas Kandagatla wrote:


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
Will Remove that..Thanks for review