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)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2014 09:55:29 +0000 (09:55 +0000)
commit50c0f21b42dd4cd02b51f82274f66912d9a7fa32
tree129a7c3d73dc0a214762454fe0db9b262e2efa92
parentf114040e3ea6e07372334ade75d1ee0775c355e1
ASoC: sigmadsp: Refuse to load firmware files with a non-supported version

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>
Cc: stable@vger.kernel.org
sound/soc/codecs/sigmadsp.c