Commit de5f644e3ca71afc06377d137375c56e250f8cb3

Authored by Kevin Strasser
Committed by Mark Brown
1 parent f5d40b400f

ASoC: Intel: fix possible acpi enumeration panic

A crash can occur on some platforms where adsp is enumerated but codec is not
matched. Define codec_id as a pointer intead of an array so that it gets
initialized to NULL for the terminating element of sst_acpi_bytcr[] and
sst_acpi_chv[].

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/soc/intel/sst/sst_acpi.c
... ... @@ -43,7 +43,7 @@
43 43 #include "sst.h"
44 44  
45 45 struct sst_machines {
46   - char codec_id[32];
  46 + char *codec_id;
47 47 char board[32];
48 48 char machine[32];
49 49 void (*machine_quirk)(void);