[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <619ba12e-aa3e-6bc9-5326-ade76c18a6d8@linux.intel.com>
Date: Fri, 14 Jul 2023 14:48:54 +0300 (EEST)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: liubin001@...suo.com
cc: gregkh@...uxfoundation.org, linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Fwd: [PATCH] tty:Insert clk_put before return (clk) to release
memory
On Fri, 14 Jul 2023, liubin001@...suo.com wrote:
>
> tty/serial:Insert clk_put before return (clk) to release memory
> Signed-off-by: Liu Bin <liubin001@...uo.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;
Braces missing... Didn't checkpatch complain about this?
--
i.
Powered by blists - more mailing lists