]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: tty: serial: Add missing of_node_put() in serial-tegra.c
authorLiang He <windhl@126.com>
Wed, 15 Jun 2022 11:17:47 +0000 (19:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:36:02 +0000 (14:36 +0200)
commitb7ea93607ab3dcaf389379af11d0b1c539c7b3f9
tree0085a5bad5e547ed7797005578ef58a5e6ea79ed
parentf784421d419660f0c90c2a2f7c803f94760ca022
drivers: tty: serial: Add missing of_node_put() in serial-tegra.c

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

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220615111747.3963930-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c