Skip to content

Commit

Permalink
ALSA: aoa: Fix of-node refcount unbalance
Browse files Browse the repository at this point in the history
We forgot to unreference a node obtained via of_find_node_by_name()
after its usage.

Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Feb 19, 2019
1 parent 31d2350 commit 00178c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/aoa/core/gpio-feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00178c9

Please sign in to comment.