git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: rockchip: Fix a reference count leak.
[sfrench/cifs-2.6.git]
/
sound
/
soc
/
rockchip
/
rockchip_pdm.c
diff --git
a/sound/soc/rockchip/rockchip_pdm.c
b/sound/soc/rockchip/rockchip_pdm.c
index 7cd42fcfcf38a6e26d8eea5b5db3d74950c60902..1707414cfa9213c6ebd244c98550666dbff75330 100644
(file)
--- a/
sound/soc/rockchip/rockchip_pdm.c
+++ b/
sound/soc/rockchip/rockchip_pdm.c
@@
-590,8
+590,10
@@
static int rockchip_pdm_resume(struct device *dev)
int ret;
ret = pm_runtime_get_sync(dev);
- if (ret < 0)
+ if (ret < 0) {
+ pm_runtime_put(dev);
return ret;
+ }
ret = regcache_sync(pdm->regmap);