summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKevin Strasser <kevin.strasser@linux.intel.com>2014-12-15 16:15:04 -0800
committerMark Brown <broonie@kernel.org>2014-12-16 11:52:09 +0000
commitde5f644e3ca71afc06377d137375c56e250f8cb3 (patch)
tree4d66cf13a6bd7a47bdb9b3153122a1e2d6b22907 /sound
parentf5d40b400fe2de5f9dc3d41681cc59b2b7c28f8c (diff)
downloadop-kernel-dev-de5f644e3ca71afc06377d137375c56e250f8cb3.zip
op-kernel-dev-de5f644e3ca71afc06377d137375c56e250f8cb3.tar.gz
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/intel/sst/sst_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/sst/sst_acpi.c b/sound/soc/intel/sst/sst_acpi.c
index f59972a..3abc29e 100644
--- a/sound/soc/intel/sst/sst_acpi.c
+++ b/sound/soc/intel/sst/sst_acpi.c
@@ -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);
OpenPOWER on IntegriCloud