]> git.baikalelectronics.ru Git - kernel.git/commit
Merge series "Add sanity checks for topology API calls" from Amadeusz Sławiński<amade...
authorMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 18:13:27 +0000 (18:13 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 18:13:27 +0000 (18:13 +0000)
commit08df18dbc6eb86ed877b78bd562edcfb16829003
treeb895c6e41cb2d5a80080b2a0cef6d48bb6245295
parent335d1b02fcc4fb13257f8418c78010caf5445b46
parentc384c6e53473c15dccbed4bd4a4fb26aa2c78aa2
Merge series "Add sanity checks for topology API calls" from Amadeusz Sławiński<amadeuszx.slawinski@linux.intel.com>:

Topology API exposes just 2 function calls, to load and unload topology.
This adds sanity checks to make sure that it behaves well when some of
parameters are set incoorectly or not needed.

This makes developer live easier by failing early instead of proceeding
on and then failing in unexpected ways.

As loading and unloading topology usually happens one the overhead of
additional checks should be negligible.

Amadeusz Sławiński (2):
  ASoC: topology: Ensure that needed parameters are set
  ASoC: topology: Check if ops is set before dereference

 sound/soc/soc-topology.c | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

--
2.25.1
sound/soc/soc-topology.c