Skip to content

Commit

Permalink
ASoC: Intel: fix possible acpi enumeration panic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Strasser authored and Mark Brown committed Dec 16, 2014
1 parent f5d40b4 commit de5f644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/sst/sst_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "sst.h"

struct sst_machines {
char codec_id[32];
char *codec_id;
char board[32];
char machine[32];
void (*machine_quirk)(void);
Expand Down

0 comments on commit de5f644

Please sign in to comment.