OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31d2350
)
ALSA: aoa: Fix of-node refcount unbalance
author
Takashi Iwai
<tiwai@suse.de>
Mon, 18 Feb 2019 13:41:25 +0000
(14:41 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 19 Feb 2019 21:20:45 +0000
(22:20 +0100)
We forgot to unreference a node obtained via of_find_node_by_name()
after its usage.
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/core/gpio-feature.c
patch
|
blob
|
history
diff --git
a/sound/aoa/core/gpio-feature.c
b/sound/aoa/core/gpio-feature.c
index
6555742
..
c3ff721
100644
(file)
--- a/
sound/aoa/core/gpio-feature.c
+++ b/
sound/aoa/core/gpio-feature.c
@@
-82,6
+82,7
@@
static struct device_node *get_gpio(char *name,
if (altname && (strcmp(audio_gpio, altname) == 0))
break;
}
+ of_node_put(gpio);
/* still not found, assume not there */
if (!np)
return NULL;