diff options
author | 2025-03-14 13:11:43 +0300 | |
---|---|---|
committer | 2025-03-16 23:33:41 +0000 | |
commit | 02026aabaa8225bd7dfdcb8ae106453e002cb0a8 (patch) | |
tree | ce9cadb4ed726cc78edf72481c4504975c673867 | |
parent | ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare() (diff) | |
download | wireguard-linux-02026aabaa8225bd7dfdcb8ae106453e002cb0a8.tar.xz wireguard-linux-02026aabaa8225bd7dfdcb8ae106453e002cb0a8.zip |
ASoC: amd: acp: Fix leak in acp_pci_probe()
There needs to be some cleanup on this error path. We can't just
return directly.
Fixes: aaf7a668bb38 ("ASoC: amd: acp: Add new interrupt handle callbacks in acp_common_hw_ops")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/3dad80cb-e177-45aa-97ac-df9c98a47d94@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/amd/acp/acp-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp/acp-pci.c b/sound/soc/amd/acp/acp-pci.c index 9322379cb36f..123524f90d6c 100644 --- a/sound/soc/amd/acp/acp-pci.c +++ b/sound/soc/amd/acp/acp-pci.c @@ -183,7 +183,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id IRQF_SHARED, "ACP_I2S_IRQ", chip); if (ret) { dev_err(&pci->dev, "ACP I2S IRQ request failed %d\n", ret); - return ret; + goto de_init; } check_acp_config(pci, chip); |