serial: ucc_uart: Add of_node_put() in ucc_uart_remove()
PATCH 1/1 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 <[email protected]>
--- drivers/tty/serial/ucc_uart.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/tty/serial/ucc_uart.c +2 -0
@@ -1469,6 +1469,8 @@ static int ucc_uart_remove(struct platform_device *ofdev)uart_remove_one_port (&ucc_uart_driver, &qe_port->port); +of_node_put (qe_port->np); +kfree (qe_port);return 0 ;
Signature · 1 line
2.25.1