Re: [PATCH] pstore/zone: Add a null pointer check to the psz_kmsg_read

From: Kees Cook
Date: Thu Feb 01 2024 - 13:15:49 EST


On Thu, 18 Jan 2024 18:02:06 +0800, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.
>
>

Applied to for-next/pstore, thanks!

[1/1] pstore/zone: Add a null pointer check to the psz_kmsg_read
https://git.kernel.org/kees/c/69f381e67d6f

Take care,

--
Kees Cook