Skip to content

Commit 02026aa

Browse files
Dan Carpenterbroonie
authored andcommitted
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: aaf7a66 ("ASoC: amd: acp: Add new interrupt handle callbacks in acp_common_hw_ops") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9aa499f commit 02026aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/amd/acp/acp-pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
183183
IRQF_SHARED, "ACP_I2S_IRQ", chip);
184184
if (ret) {
185185
dev_err(&pci->dev, "ACP I2S IRQ request failed %d\n", ret);
186-
return ret;
186+
goto de_init;
187187
}
188188

189189
check_acp_config(pci, chip);

0 commit comments

Comments
 (0)