linux-brain/sound/aoa
Nicholas Mc Guire a1003fd887 ALSA: snd-aoa: add of_node_put() in error path
[ Upstream commit 222bce5eb8 ]

 Both calls to of_find_node_by_name() and of_get_next_child() return a
node pointer with refcount incremented thus it must be explicidly
decremented here after the last usage. As we are assured to have a
refcounted  np  either from the initial
of_find_node_by_name(NULL, name); or from the of_get_next_child(gpio, np)
in the while loop if we reached the error code path below, an
x of_node_put(np) is needed.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: commit f3d9478b2c ("[ALSA] snd-aoa: add snd-aoa")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-03 17:01:45 -07:00
..
codecs ALSA: aoa: Drop owner assignment from i2c_driver 2015-07-10 09:54:33 +02:00
core ALSA: snd-aoa: add of_node_put() in error path 2018-10-03 17:01:45 -07:00
fabrics ALSA: squash lines for simple wrapper functions 2016-09-07 20:35:29 +02:00
soundbus ALSA: snd-aoa: enable sound on PowerBook G4 12" 2016-08-25 16:48:54 +02:00
Kconfig sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
Makefile [PATCH] aoa: fix when all is built into the kernel 2006-07-10 13:24:19 -07:00
aoa-gpio.h ALSA: snd-aoa: handle master-amp if present 2009-01-15 18:28:37 +01:00
aoa.h ALSA: Drop __bitwise and typedefs for snd_device attributes 2014-02-14 08:20:24 +01:00