mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
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>
This commit is contained in:
parent
31d2350d60
commit
00178c9175
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user