]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drivers/tty: add missing of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 21 Nov 2018 15:22:54 +0000 (10:22 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit676f28848f381c98d977f74e4048da3ce3cb0dce
tree89c1485c7489703ce1835a87856195982a71f455
parent4cbc62b174e28cb90b3d1c67f0639b81caf02ccb
drivers/tty: add missing of_node_put()

BugLink: https://bugs.launchpad.net/bugs/1837257
[ Upstream commit dac097c4546e4c5b16dd303a1e97c1d319c8ab3e ]

of_find_node_by_path() acquires a reference to the node
returned by it and that reference needs to be dropped by its caller.
This place is not doing this, so fix it.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/suncore.c