* [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
@ 2024-04-08 7:35 Dan Carpenter
2024-04-08 15:37 ` Pierre-Louis Bossart
2024-04-09 13:07 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2024-04-08 7:35 UTC (permalink / raw)
To: Brent Lu
Cc: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood,
Peter Ujfalusi, Bard Liao, Ranjani Sridharan, Kai Vehmanen,
Mark Brown, Jaroslav Kysela, Takashi Iwai, Terry Cheong,
Uday M Bhat, Kuninori Morimoto, Mac Chiang, apoorv, alsa-devel,
linux-sound, linux-kernel, kernel-janitors
Initialize "is_legacy_cpu" to false to prevent an uninitialized variable
bug.
Fixes: 8efcd4864652 ("ASoC: Intel: sof_rt5682: use common module for sof_card_private initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
sound/soc/intel/boards/sof_rt5682.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index aadd341a202c..966bcd3e8bdc 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -606,7 +606,7 @@ static int sof_audio_probe(struct platform_device *pdev)
{
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct sof_card_private *ctx;
- bool is_legacy_cpu;
+ bool is_legacy_cpu = false;
int ret;
if (pdev->id_entry && pdev->id_entry->driver_data)
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
2024-04-08 7:35 [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe Dan Carpenter
@ 2024-04-08 15:37 ` Pierre-Louis Bossart
2024-04-09 13:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Louis Bossart @ 2024-04-08 15:37 UTC (permalink / raw)
To: Dan Carpenter, Brent Lu
Cc: Cezary Rojewski, Liam Girdwood, Peter Ujfalusi, Bard Liao,
Ranjani Sridharan, Kai Vehmanen, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Terry Cheong, Uday M Bhat, Kuninori Morimoto,
Mac Chiang, apoorv, alsa-devel, linux-sound, linux-kernel,
kernel-janitors
On 4/8/24 02:35, Dan Carpenter wrote:
> Initialize "is_legacy_cpu" to false to prevent an uninitialized variable
> bug.
>
> Fixes: 8efcd4864652 ("ASoC: Intel: sof_rt5682: use common module for sof_card_private initialization")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Good catch.
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> ---
> sound/soc/intel/boards/sof_rt5682.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
> index aadd341a202c..966bcd3e8bdc 100644
> --- a/sound/soc/intel/boards/sof_rt5682.c
> +++ b/sound/soc/intel/boards/sof_rt5682.c
> @@ -606,7 +606,7 @@ static int sof_audio_probe(struct platform_device *pdev)
> {
> struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
> struct sof_card_private *ctx;
> - bool is_legacy_cpu;
> + bool is_legacy_cpu = false;
> int ret;
>
> if (pdev->id_entry && pdev->id_entry->driver_data)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
2024-04-08 7:35 [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe Dan Carpenter
2024-04-08 15:37 ` Pierre-Louis Bossart
@ 2024-04-09 13:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2024-04-09 13:07 UTC (permalink / raw)
To: Brent Lu, Dan Carpenter
Cc: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood,
Peter Ujfalusi, Bard Liao, Ranjani Sridharan, Kai Vehmanen,
Jaroslav Kysela, Takashi Iwai, Terry Cheong, Uday M Bhat,
Kuninori Morimoto, Mac Chiang, apoorv, alsa-devel, linux-sound,
linux-kernel, kernel-janitors
On Mon, 08 Apr 2024 10:35:59 +0300, Dan Carpenter wrote:
> Initialize "is_legacy_cpu" to false to prevent an uninitialized variable
> bug.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
commit: 9cb83ed19b35e6c596b4e6644708ac4e011f32ab
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-09 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08 7:35 [PATCH] ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe Dan Carpenter
2024-04-08 15:37 ` Pierre-Louis Bossart
2024-04-09 13:07 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox