summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2020-03-12 15:22:39 +0300
committerMark Brown <broonie@kernel.org>2020-03-12 19:52:17 +0300
commitc42464a4e67383d8daeeaa668ff875e399a38105 (patch)
treeae844075878479f5b1f19bce92ab4169ebc17442 /usr
parent6187509ba5ccbe83a1cc368a4096b7f96e578c22 (diff)
downloadlinux-c42464a4e67383d8daeeaa668ff875e399a38105.tar.xz
ASoC: topology: Perform component check upfront
Function soc_tplg_dbytes_create(), calls soc_tplg_init_kcontrol() to perform additional driver specific initialization. While soc_tplg_init_kcontrol() ensures that component is valid before invoking ops->control_load, there is no such check at the end of soc_tplg_dbytes_create() where list_add() is used. Also in quite a few places, there is reference of tplg->comp->dapm or tplg->comp->card, without any checks for tplg->comp. In consequence of the above this may lead to referencing NULL pointer. This allows for removal of now unnecessary checks. 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/20200312122239.14489-1-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions