summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMert Seftali <mertsftl@gmail.com>2026-06-14 14:40:19 +0200
committerMark Brown <broonie@kernel.org>2026-06-29 16:19:04 +0100
commit11e828cd6b0f283ebe9dc6b4cffd38e3321e7725 (patch)
tree97eae96f9db3e2955d32e8cee96aacc7be9f1234 /tools/perf/scripts/python/bin/stackcollapse-record
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
ASoC: SOF: ipc4-topology: Return error for invalid number of formats
When the number of input or output formats is zero, sof_ipc4_widget_setup_comp_src() and sof_ipc4_widget_setup_comp_asrc() print an error and jump to the cleanup label. At that point 'ret' is still 0, because the earlier sof_ipc4_get_audio_fmt() call succeeded, so the function returns success and the caller never finds out that the widget setup actually failed. Set ret to -EINVAL before the goto so the error gets reported. Fixes: 21a5adffad46 ("ASoC: SOF: ipc4-topology: Validate the number of in/out formats for src/asrc") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/r/202606111431.Uky3T0tF-lkp@intel.com/ Signed-off-by: Mert Seftali <mertsftl@gmail.com> Link: https://patch.msgid.link/20260614124019.19259-1-mertsftl@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions