]> git.itanic.dy.fi Git - linux-stable/commit
memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 9 Mar 2022 11:01:43 +0000 (11:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:23:10 +0000 (09:23 +0200)
commit16c628b0c6faa2fab1a75ffce80860f8106cf002
treed767baf81606823d10caa84e4b10938686de14c9
parentcb66641f81060a5a5d88f85d2aeb73860edc79df
memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe

[ Upstream commit 6f296a9665ba5ac68937bf11f96214eb9de81baa ]

The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.

Fixes: 87108dc78eb8 ("memory: atmel-ebi: Enable the SMC clock if specified")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220309110144.22412-1-linmq006@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/memory/atmel-ebi.c