Re: [PATCH] pstore/ram: Add check for kstrdup

From: Kees Cook
Date: Wed Jun 14 2023 - 15:02:41 EST


On Wed, 14 Jun 2023 17:37:33 +0800, Jiasheng Jiang wrote:
> Add check for the return value of kstrdup() and return the error
> if it fails in order to avoid NULL pointer dereference.
>
>

Applied to for-next/pstore, thanks!

[1/1] pstore/ram: Add check for kstrdup
https://git.kernel.org/kees/c/d97038d5ec20

--
Kees Cook