From 00178c9175402c364a1456742c0d71bdc4189e0c Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 18 Feb 2019 14:41:25 +0100 Subject: 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 Signed-off-by: Takashi Iwai --- sound/aoa/core/gpio-feature.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3