]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: fix possible acpi enumeration panic
authorKevin Strasser <kevin.strasser@linux.intel.com>
Tue, 16 Dec 2014 00:15:04 +0000 (16:15 -0800)
committerMark Brown <broonie@kernel.org>
Tue, 16 Dec 2014 11:52:09 +0000 (11:52 +0000)
commitaccd8730b28ec75aadc2b37be89047e5f6fc9f0b
tree4d66cf13a6bd7a47bdb9b3153122a1e2d6b22907
parent6db1b3cc6bb598f568317bc1b1fc979633d38979
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>
sound/soc/intel/sst/sst_acpi.c