diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-18 14:41:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-19 22:20:45 +0100 |
commit | 00178c9175402c364a1456742c0d71bdc4189e0c (patch) | |
tree | ef77c3a24dcb60010ef5746cdb738cec41bd571e /sound/aoa | |
parent | 31d2350d602511efc9ef626b848fe521233b0387 (diff) | |
download | linux-00178c9175402c364a1456742c0d71bdc4189e0c.tar.bz2 |
ALSA: aoa: Fix of-node refcount unbalance
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>
Diffstat (limited to 'sound/aoa')
-rw-r--r-- | sound/aoa/core/gpio-feature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/aoa/core/gpio-feature.c b/sound/aoa/core/gpio-feature.c index 65557421fe0b..c3ff721e4660 100644 --- 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; |