Skip to content

Commit

Permalink
ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
Browse files Browse the repository at this point in the history
Initialize "is_legacy_cpu" to false to prevent an uninitialized variable
bug.

Fixes: 8efcd48 ("ASoC: Intel: sof_rt5682: use common module for sof_card_private initialization")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Pierre-Louis Bossart <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Dan Carpenter authored and brentlu committed Apr 10, 2024
1 parent 52217b9 commit b332ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/boards/sof_rt5682.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,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;
char *card_name;
bool is_legacy_cpu;
bool is_legacy_cpu = false;
int ret;

if (pdev->id_entry && pdev->id_entry->driver_data)
Expand Down

0 comments on commit b332ca8

Please sign in to comment.