]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smem_state: Add refcounting for the 'state->of_node'
authorLiang He <windhl@126.com>
Thu, 21 Jul 2022 13:52:17 +0000 (21:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:32 +0000 (13:22 +0200)
commit3614e84a97db243614d141ac8ef7431ab6b84173
tree3da566fbb8a51d51eff598b398133c1f6b931204
parentd8940b2b6008f37cf9716dec62d2440675798c2e
soc: qcom: smem_state: Add refcounting for the 'state->of_node'

[ Upstream commit b0421d738878e5787aec8638371c2c0916631bdc ]

In qcom_smem_state_register() and qcom_smem_state_release(), we
should better use of_node_get() and of_node_put() for the reference
creation and destruction of 'device_node'.

Fixes: 01e637a3bc61 ("soc: qcom: Introduce common SMEM state machine code")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220721135217.1301039-2-windhl@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/smem_state.c