lkml.org 
[lkml]   [2023]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFwd: [PATCH] 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 <liubin001@08suo.com>
---
drivers/tty/serial/bcm63xx_uart.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/bcm63xx_uart.c
b/drivers/tty/serial/bcm63xx_uart.c
index 55e82d0bf92d..7353b683952d 100644
--- a/drivers/tty/serial/bcm63xx_uart.c
+++ b/drivers/tty/serial/bcm63xx_uart.c
@@ -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;
\
 
 \ /
  Last update: 2023-07-16 20:47    [W:0.261 / U:3.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site