Thread (3 messages) 3 messages, 3 authors, 2026-02-23

Re: [PATCH] clk: aspeed: ast2700: Add missing NULL pointer check for devm_kasprintf()

From: Brian Masney <bmasney@redhat.com>
Date: 2026-02-18 11:14:32
Also in: linux-aspeed, linux-clk, lkml

On Wed, Feb 18, 2026 at 04:16:37PM +0800, Felix Gu wrote:
devm_kasprintf() can return NULL on memory allocation failure.

Check the return value and return -ENOMEM if allocation fails in
ast2700_soc_clk_probe().

Fixes: fdc1eb624ddc ("clk: aspeed: add AST2700 clock driver")
Signed-off-by: Felix Gu <redacted>
Reviewed-by: Brian Masney <bmasney@redhat.com>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help