Re: [PATCH] mfd: syscon: Fix null pointer dereference in of_syscon_register

From: Arnd Bergmann
Date: Mon Dec 04 2023 - 05:07:22 EST


On Mon, Dec 4, 2023, at 10:24, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure.
>
> Fixes: e15d7f2b81d2 ("mfd: syscon: Use a unique name with regmap_config")
> Signed-off-by: Kunwu Chan <chentao@xxxxxxxxxx>

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>