[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bd18152e-4435-4afb-80b9-22686af8f9fc@lechnology.com>
Date: Thu, 14 Nov 2024 08:18:28 -0600
From: David Lechner <david@...hnology.com>
To: Charles Han <hanchunchao@...pur.com>, mturquette@...libre.com,
sboyd@...nel.org
Cc: linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: davinci: Add NULL check in davinci_lpsc_clk_register
On 11/14/24 3:14 AM, Charles Han wrote:
> devm_kasprintf() can return a NULL pointer on failure,but this
> returned value in davinci_lpsc_clk_register() is not checked.
> Add NULL check in davinci_lpsc_clk_register(), to handle kernel NULL
> pointer dereference error.
>
> Fixes: c6ed4d734bc7 ("clk: davinci: New driver for davinci PSC clocks")
> Signed-off-by: Charles Han <hanchunchao@...pur.com>
> ---
Reviewed-by: David Lechner <david@...hnology.com>
Powered by blists - more mailing lists