]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ac97: Fix of-node refcount unbalance
authorTakashi Iwai <tiwai@suse.de>
Mon, 18 Feb 2019 13:38:06 +0000 (14:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Feb 2019 21:20:14 +0000 (22:20 +0100)
commitedfaab86baf618631c8c1094582a3d13f6d263bf
treeb43a004188f1edb233b15dfa83a03f0158bfb7d0
parentb82bbb3f40160ae2385baf7f93c3a24a017143cd
ALSA: ac97: Fix of-node refcount unbalance

ac97_of_get_child_device() take the refcount of the node explicitly
via of_node_get(), but this leads to an unbalance.  The
for_each_child_of_node() loop itself takes the refcount for each
iteration node, hence you don't need to take the extra refcount
again.

Fixes: c94f736fa58a ("ALSA: ac97: add codecs devicetree binding")
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ac97/bus.c