Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe

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>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/6e16433f-1897-46a2-b3ee-e177e7d846b8@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dan Carpenter and committed by
Mark Brown
9cb83ed1 b2c37f6e

+1 -1
+1 -1
sound/soc/intel/boards/sof_rt5682.c
··· 606 606 { 607 607 struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; 608 608 struct sof_card_private *ctx; 609 - bool is_legacy_cpu; 609 + bool is_legacy_cpu = false; 610 610 int ret; 611 611 612 612 if (pdev->id_entry && pdev->id_entry->driver_data)