diff options
| author | Cezary Rojewski <cezary.rojewski@intel.com> | 2026-09-02 10:18:07 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-03 22:51:28 +0100 |
| commit | ce4d7356660ab7f8fd7c3119c16fef5c9b9adec9 (patch) | |
| tree | f2147a699fdd8e26fd43dae32af3986f5138425c /scripts/Makefile.thinlto | |
| parent | 48afc07c4f1b9c3cdbe66ddc3e7677ed395ce75f (diff) | |
| download | linux-next-ce4d7356660ab7f8fd7c3119c16fef5c9b9adec9.tar.gz linux-next-ce4d7356660ab7f8fd7c3119c16fef5c9b9adec9.zip | |
ASoC: Intel: avs: Clean up the bus when its initialization fails
snd_hdac_i915_init() which is part of the initialization may return
-EPROBE_DEFER what fails the procedure and the existing avs_bus_init()
and avs_pci_probe() do not clean up the bus fields with
snd_hdac_ext_bus_exit() when that happens.
Fix avs_bus_init() by rearranging the initialization blocks: allocations
first, snd_hdac_ext_bus_init() last. Such approach generates no
error-path whilst still achieving the goal of cleaning up the bus.
For avs_pci_probe() update the existing error-path instead.
Co-developed-by: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260902081814.1590883-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
