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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux