serial: ucc_uart: Add of_node_put() in ucc_uart_remove()
authorLiang He <windhl@126.com>
Mon, 5 Dec 2022 08:54:37 +0000 (16:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:51:09 +0000 (15:51 +0100)
commit6e054678ff5c10840ce801dfdb2d4898decb2b63
tree39e9aa6b3bdf27e47b42fbb31e0a7e1dfe8128e4
parent2aaa43c7077833301c237684cd7bc9ae5e3dec95
serial: ucc_uart: Add of_node_put() in ucc_uart_remove()

In ucc_uart_probe(), we have added proper of_node_put() in the failure
paths. However, we miss it before we free *qe_port* in the remove() function.

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