From: Christian Engelmayer Date: Sat, 7 Feb 2015 22:40:52 +0000 (+0100) Subject: ASoC: Intel: sst: Fix firmware name size handling X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~130^2~13^2~16^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=279e17ae81c17b40ae7a6c9e10f386a7aac7aa55;p=pandora-kernel.git ASoC: Intel: sst: Fix firmware name size handling Function sst_acpi_probe() uses plain strcpy for setting member firmware_name of a struct intel_sst_drv from member firmware of a struct sst_machines. Thereby the destination array has got a length of 20 byte while the source may hold 32 byte. Since eg. commit 64b9c90b8600 ("ASoC: Intel: Fix BYTCR firmware name") increased strings from "fw_sst_0f28.bin" to "intel/fw_sst_0f28.bin" there is an actual possibility that the 20 byte array at the end of struct intel_sst_drv is overrun. Thus increase the size of the destination and use the same define for both structs. Detected by Coverity CID 1260087. Signed-off-by: Christian Engelmayer Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed