ASoC: sigmadsp: Refuse to load firmware files with a non-supported version

commit 50c0f21b42 upstream.

Make sure to check the version field of the firmware header to make sure to
not accidentally try to parse a firmware file with a different layout.
Trying to do so can result in loading invalid firmware code to the device.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Lars-Peter Clausen 2014-11-19 18:29:02 +01:00 • committed by Luis Henriques
commit 17a29b838a