]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak
authorLiang He <windhl@126.com>
Thu, 5 Jan 2023 06:10:55 +0000 (14:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:32 +0000 (13:55 +0100)
commit7347cabfeae62a56bdc78b1cf710ae45680b5fd0
tree3361f564344e8b9498d47bb7316a9bf4b21d479d
parent9df873018fb59dcea77fd5bd46c6159c1f05e539
mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak

[ Upstream commit bb544e43c3a04f9c5c5b09528702fa0da79a551a ]

In arizona_clk32k_enable(), we should use pm_runtime_resume_and_get()
as pm_runtime_get_sync() will increase the refcnt even when it
returns an error.

Signed-off-by: Liang He <windhl@126.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230105061055.1509261-1-windhl@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/arizona-core.c