From: Jarkko Nikula Date: Tue, 25 Feb 2014 14:37:47 +0000 (+0200) Subject: ASoC: Intel: sst-acpi: Fix Oops in case of missing firmware X-Git-Tag: v3.15-rc1~36^2~1^2~4^2~11^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5069e5c93ca73eab185d3bb338a1362275f9ea70;p=pandora-kernel.git ASoC: Intel: sst-acpi: Fix Oops in case of missing firmware I swear I tested missing firmware in commit e5161d7987f1 ("ASoC: Intel: sst-acpi: Request firmware before SST platform driver probing"). Unfortunately same wasn't done in commit 6dda27cbbd1d ("ASoC: Intel: sst-acpi: Add support for multiple machine drivers per platform") which will cause NULL pointer dereference in sst_acpi_fw_cb() when printing the error since sst_acpi->mach is not set. Fix this obvious error by setting the sst_acpi->mach in sst_acpi_probe(). Reported-by: Mika Westerberg Signed-off-by: Jarkko Nikula Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed