ASoC: topology: Check for dapm widget completeness
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 15 Oct 2021 16:12:54 +0000 (18:12 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 Oct 2021 15:49:42 +0000 (16:49 +0100)
commit2e288333e9e0a14f9895321a848992b25a0e5563
treef5ff0b0f4c1936e821b61578f2d11024fd61da79
parent86e2d14b6d1a68941b6c0ef39502ec1433b680cb
ASoC: topology: Check for dapm widget completeness

Add sanity checks to make sure the data is read within file boundary.
Helps in situations where file is only partially copied or malformed.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211015161257.27052-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c