]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: Fix refcount leak bug in ucc_uart.c
authorLiang He <windhl@126.com>
Sat, 18 Jun 2022 06:08:50 +0000 (14:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:36 +0000 (11:18 +0200)
commit9972993da32b1de574a6706fe92d9e91fc75a36c
tree51c4c87a53a4ea4ca7273dea44f75a8fe563d3b3
parent5f7e20d5665bc48f79e51b281233c6739f26a1a0
tty: serial: Fix refcount leak bug in ucc_uart.c

[ Upstream commit cfc637237791b4b9470a11effbf84cc1445257ee ]

In soc_info(), of_find_node_by_type() will return a node pointer
with refcount incremented. We should use of_node_put() when it is
not used anymore.

Acked-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220618060850.4058525-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/ucc_uart.c