tty:Insert clk_put before return (clk) to release memory
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 tty:Insert clk_put before return (clk) to release memory
tty/serial:Insert clk_put before return (clk) to release memory
Signed-off-by Liu Bin <[email protected]>
--- drivers/tty/serial/bcm63xx_uart.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/bcm63xx_uart.c +1 -0
@@ -851,6 +851,7 @@ static int bcm_uart_probe(struct platform_device *pdev) clk =of_clk_get (pdev->dev.of_node,0 );if (IS_ERR (clk)) +clk_put (clk);return -ENODEV ; port->iotype =UPIO_MEM ;
Greg KH
maintainerQuoted 13 lines · On Fri, Jul 14, 2023 at 12:30:14PM +0800, [email protected] wrote:
tty/serial:Insert
clk_putbefore return (clk) to release memorySigned-off-by Liu Bin <[email protected]>--- drivers/tty/serial/bcm63xx_uart.c | 1 + 1 file changed, 1 insertion(+)drivers/tty/serial/bcm63xx_uart.c +0
-0
drivers/tty/serial/bcm63xx_uart.c static int bcm_uart_probe(struct platform_device *pdev) · line 857
Quoted 7 lines
drivers/tty/serial/bcm63xx_uart.c +1
-0@@ -851,6 +851,7 @@ static int bcm_uart_probe(struct platform_device *pdev) clk =of_clk_get (pdev->dev.of_node,0 );if (IS_ERR (clk)) +clk_put (clk);return -ENODEV ; port->iotype =UPIO_MEM ;
This obviously has not even been tested :(
Quoted 13 lines · On Fri, 14 Jul 2023, [email protected] wrote:
tty/serial:Insert
clk_putbefore return (clk) to release memorySigned-off-by Liu Bin <[email protected]>--- drivers/tty/serial/bcm63xx_uart.c | 1 + 1 file changed, 1 insertion(+)drivers/tty/serial/bcm63xx_uart.c +0
-0
drivers/tty/serial/bcm63xx_uart.c static int bcm_uart_probe(struct platform_device *pdev) · line 855
Quoted 5 lines
drivers/tty/serial/bcm63xx_uart.c +1
-0@@ -851,6 +851,7 @@ static int bcm_uart_probe(struct platform_device *pdev) clk =of_clk_get (pdev->dev.of_node,0 );if (IS_ERR (clk)) +clk_put (clk);return -ENODEV ;
Braces missing... Didn't checkpatch complain about this?
Signature · 1 line
i.