Message ID | 6e16433f-1897-46a2-b3ee-e177e7d846b8@moroto.mountain (mailing list archive) |
---|---|
State | Accepted |
Commit | 9cb83ed19b35e6c596b4e6644708ac4e011f32ab |
Headers | show |
Series | ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe | expand |
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)
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
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)
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(-)