[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <047273ae4e4c25eb7b81fd69d761161e@208suo.com>
Date: Tue, 18 Jul 2023 15:55:23 +0800
From: sunran001@...suo.com
To: gregkh@...uxfoundation.org
Cc: linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] tty: serial: add missing clk_put()
This patch fixes the following Coccinelle error:
./drivers/tty/serial/bcm63xx_uart.c:854:2-8: ERROR: missing clk_put;
clk_get on line 849 and execution via conditional on line 853
Signed-off-by: Ran Sun <sunran001@...suo.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;
Powered by blists - more mailing lists