ASoC: Intel: avs: Fix pci_probe() error path
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 2 Feb 2024 11:49:01 +0000 (12:49 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Feb 2024 14:31:36 +0000 (14:31 +0000)
commitb5fbde22684af5456d1de60758950944d69d69ad
treea77ad6dc483701617d26dc42bcacf2680f64fb8c
parentac670505d825151ce47c1e75b9964485991954dd
ASoC: Intel: avs: Fix pci_probe() error path

Recent changes modified operation-order in the probe() function without
updating its error path accordingly. If snd_hdac_i915_init() exists with
status EPROBE_DEFER the error path must cleanup allocated IRQs before
leaving the scope.

Fixes: 2dddc514b6e4 ("ASoC: Intel: avs: Move snd_hdac_i915_init to before probe_work.")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20240202114901.1002127-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/core.c