mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
ALSA: ppc: Fix of-node refcount unbalance
We forgot to unreference the node when aborting from the loop of for_each_child_of_node() in snd_pmac_tumbler_init(). This leads to unbalanced node refcount. Fix it by adding the missing of_node_put() call. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
00178c9175
commit
5e2c946582
1 changed files with 1 additions and 0 deletions
|
@ -1371,6 +1371,7 @@ int snd_pmac_tumbler_init(struct snd_pmac *chip)
|
||||||
mix->anded_reset = 1;
|
mix->anded_reset = 1;
|
||||||
if (of_get_property(np, "layout-id", NULL))
|
if (of_get_property(np, "layout-id", NULL))
|
||||||
mix->reset_on_sleep = 0;
|
mix->reset_on_sleep = 0;
|
||||||
|
of_node_put(np);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue