ASoC: topology: Check size mismatch of ABI objects before parsing
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 27 Apr 2016 06:52:56 +0000 (14:52 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 27 Apr 2016 16:32:30 +0000 (17:32 +0100)
commit06eb49f72fa57f5a49acdf9f4af84d2d326513b3
treed1ebb357f5a46bdbcc126d91b4e16184e39b5cc0
parent7de76b621f77aba456f594e4621eca2e94a146f3
ASoC: topology: Check size mismatch of ABI objects before parsing

If size mismatch of manifest, ABI headers or elements is found, stop
parsing topology info and return the error.

New fields may be append to the tail of ABI objects which will cause
object size to increase. If user space and kernel use different versions
of ABI, size mismatch will be detected here.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c