]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API
authorLiang He <windhl@126.com>
Wed, 14 Sep 2022 13:43:54 +0000 (21:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:57:21 +0000 (09:57 +0200)
commitb58efaf656abd661e99479243aa27389edfd1b74
tree774240548294ca878cd72071a1160f5c3e8ded3d
parentbeffe91431ba91860a5c48f9c186dc452b7f22a1
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API

[ Upstream commit bfb735a3ceff0bab6473bac275da96f9b2a06dec ]

In eukrea_tlv320_probe(), we need to hold the reference returned
from of_find_compatible_node() which has increased the refcount
and then call of_node_put() with it when done.

Fixes: 66f232908de2 ("ASoC: eukrea-tlv320: Add DT support.")
Co-authored-by: Kelin Wang <wangkelin2023@163.com>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220914134354.3995587-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/eukrea-tlv320.c