Searched hist:"9 c88a983" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/ |
H A D | soc-topology.c | 9c88a983 Thu Jan 14 10:36:02 CST 2021 Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> ASoC: topology: Check if ops is set before dereference
Topology can be created without ops overrides, in that case trying to assign any value would lead to dereferencing NULL pointer.
Other places in code have either checks for tplg->ops or loop using *_count variables, hence they can't dereference NULL pointer and there is no need to add more checks.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20210114163602.911205-3-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
|