ASoC: topology: Add missing size check
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 10 Dec 2020 15:25:41 +0000 (10:25 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 11 Dec 2020 13:23:00 +0000 (13:23 +0000)
commitf5824e5ce1cdba523a357a4d3ffbe0876a27330f
tree398cc26597f816207364c82ff04c5e941f811c2d
parent3759d5edc07598d55124d87bd292a95f79f47997
ASoC: topology: Add missing size check

When we parse "values" we perform check if there is correct number of
them. However similar check is missing in case of "texts", add it.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20201210152541.191728-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c