projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4a9b2
)
ASoC: SOF: amd: add missing platform_device_unregister in acp_pci_rn_probe
author
Zheng Bin
<zhengbin13@huawei.com>
Thu, 12 May 2022 01:37:28 +0000
(09:37 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 12 May 2022 10:41:33 +0000
(11:41 +0100)
acp_pci_rn_probe misses a call platform_device_unregister in error path,
this patch fixes that.
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Link:
https://lore.kernel.org/r/20220512013728.4128903-1-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/amd/pci-rn.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/sof/amd/pci-rn.c
b/sound/soc/sof/amd/pci-rn.c
index b8910bb7f27cc44664d9c56356958ee8ea1d11bf..d5d9bcc2c997d8a5fce27afafb304c7984656884 100644
(file)
--- a/
sound/soc/sof/amd/pci-rn.c
+++ b/
sound/soc/sof/amd/pci-rn.c
@@
-101,6
+101,7
@@
static int acp_pci_rn_probe(struct pci_dev *pci, const struct pci_device_id *pci
res = devm_kzalloc(&pci->dev, sizeof(struct resource) * ARRAY_SIZE(renoir_res), GFP_KERNEL);
if (!res) {
sof_pci_remove(pci);
+ platform_device_unregister(dmic_dev);
return -ENOMEM;
}