]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:35 +0000 (11:57 +0200)
commit71a58566851306f0da21584b3d5df7d5bb67a828
tree6a40154f251fe9dffd37999df876d530846acb9a
parent0e91e5b6735fa8c25b3d36020167f526bd05d33b
tty: serial: Fix refcount leak bug in ucc_uart.c

BugLink: https://bugs.launchpad.net/bugs/1990564
[ Upstream commit d24d7bb2cd947676f9b71fb944d045e09b8b282f ]

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/serial/ucc_uart.c