]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef4135aa9694f693a759fd3e41a83daca870bad7
treef5ff0b0f4c1936e821b61578f2d11024fd61da79
parenta9941ad364a6f0fd50e10c180c931f9124ad83a4
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