patch "tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart" added to tty-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart
to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 580d952e44de5509c69c8f9346180ecaa78ebeec Mon Sep 17 00:00:00 2001
From: Zou Wei <[email protected]>
Date: Tue, 21 Apr 2020 20:31:46 +0800
Subject: tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart
This patch fixes below error reported by coccicheck
drivers/tty/serial/bcm63xx_uart.c:848:2-8: ERROR: missing clk_put; clk_get on line 842 and execution via conditional on line 846
--- drivers/tty/serial/bcm63xx_uart.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/tty/serial/bcm63xx_uart.c +3 -1
@@ -843,8 +843,10 @@ static int bcm_uart_probe(struct platform_device *pdev)if (IS_ERR (clk) && pdev->dev.of_node) clk =of_clk_get (pdev->dev.of_node,0 ); -if (IS_ERR (clk)) +if (IS_ERR (clk)) { +clk_put (clk);return -ENODEV ; + } port->iotype =UPIO_MEM ; port->irq = res_irq->start;
Signature · 1 line
2.26.2