diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-09-22 22:44:57 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-23 19:54:15 +0300 |
commit | abb4e4349afe7eecdb0499582f1c777031e3a7c8 (patch) | |
tree | 37dba50563406f4ecf55ea971f6fee51cab4af31 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1849a1505533501ea39ed0538c2d35eba4704baa (diff) | |
download | linux-abb4e4349afe7eecdb0499582f1c777031e3a7c8.tar.xz |
ASoC: da7219: Fix an error handling path in da7219_register_dai_clks()
If clk_hw_register() fails, the corresponding clk should not be
unregistered.
To handle errors from loops, clean up partial iterations before doing the
goto. So add a clk_hw_unregister().
Then use a while (--i >= 0) loop in the unwind section.
Fixes: 78013a1cf297 ("ASoC: da7219: Fix clock handling around codec level probe")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/e4acceab57a0d9e477a8d5890a45c5309e553e7c.1663875789.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions