projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b6bc35
)
ASoC: efika-audio-fabric: fix resource leak in efika_fabric_init error path
author
Axel Lin
<axel.lin@gmail.com>
Thu, 25 Nov 2010 07:07:25 +0000
(15:07 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 25 Nov 2010 11:08:13 +0000
(11:08 +0000)
Add missing platform_device_put() if platform_device_add() failed.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/efika-audio-fabric.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/efika-audio-fabric.c
b/sound/soc/fsl/efika-audio-fabric.c
index 53251e6b5bd509303dc17500e8f4d64feeea7021..108b5d8bd0e944bc2f0525c930c35df643e1a500 100644
(file)
--- a/
sound/soc/fsl/efika-audio-fabric.c
+++ b/
sound/soc/fsl/efika-audio-fabric.c
@@
-76,6
+76,7
@@
static __init int efika_fabric_init(void)
rc = platform_device_add(pdev);
if (rc) {
pr_err("efika_fabric_init: platform_device_add() failed\n");
+ platform_device_put(pdev);
return -ENODEV;
}
return 0;