]> git.itanic.dy.fi Git - linux-stable/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)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 18 Aug 2022 19:13:46 +0000 (14:13 -0500)
commit90681f53b9381c23ff7762a3b13826d620c272de
treeed48659c661a35c55f2777e9b16bd95546f5888b
parentaf8f6f39b8afd772fda4f8e61823ef8c021bf382
soc: qcom: smem_state: Add refcounting for the 'state->of_node'

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: 9460ae2ff308 ("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
drivers/soc/qcom/smem_state.c