提交 de5f644e 编写于 作者: K Kevin Strasser 提交者: Mark Brown

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: NKevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f5d40b40
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册