]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: sigmadsp: Refuse to load firmware files with a non-supported version
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Nov 2014 17:29:02 +0000 (18:29 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 13:38:41 +0000 (14:38 +0100)
commite1d6f7ff9cd65f868066d9b17833fb82760209f4
tree7fa0b0be44f9265364c75db4e4ac92210b15ae1b
parent939c0896c85b324de081975d21b77b7678fff2af
ASoC: sigmadsp: Refuse to load firmware files with a non-supported version

commit 50c0f21b42dd4cd02b51f82274f66912d9a7fa32 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: Jiri Slaby <jslaby@suse.cz>
sound/soc/codecs/sigmadsp.c