]> git.baikalelectronics.ru Git - kernel.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>
Wed, 26 Oct 2022 11:22:30 +0000 (13:22 +0200)
commit102b4a2ff13cae0075511385127dcf33fd87a823
treef250db04bdae832246c590478c34cd461fc6b13d
parentf8013d4e50121de778e538fd8a269f9e0270b84a
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API

[ Upstream commit ab887247459ab4e2474b75bf86c7025122036c50 ]

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: 1dda4a8dfa38 ("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