diff options
author | Jaroslav Kysela <[email protected]> | 2020-01-22 20:07:52 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-01-23 12:11:11 +0000 |
commit | 8ce1cbd6ce0b1bda0c980c64fee4c1e1378355f1 (patch) | |
tree | f9a3e9eee0b78ac068a65bd376f7cc9faba727ac /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 15adb20f64c302b31e10ad50f22bb224052ce1df (diff) |
ASoC: topology: fix soc_tplg_fe_link_create() - link->dobj initialization order
The code which checks the return value for snd_soc_add_dai_link() call
in soc_tplg_fe_link_create() moved the snd_soc_add_dai_link() call before
link->dobj members initialization.
While it does not affect the latest kernels, the old soc-core.c code
in the stable kernels is affected. The snd_soc_add_dai_link() function uses
the link->dobj.type member to check, if the link structure is valid.
Reorder the link->dobj initialization to make things work again.
It's harmless for the recent code (and the structure should be properly
initialized before other calls anyway).
The problem is in stable linux-5.4.y since version 5.4.11 when the
upstream commit 76d270364932 was applied.
Fixes: 76d270364932 ("ASoC: topology: Check return value for snd_soc_add_dai_link()")
Cc: Dragos Tarcatu <[email protected]>
Cc: Pierre-Louis Bossart <[email protected]>
Cc: Ranjani Sridharan <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions