Re: [PATCH] pstore/ram_core: Improve exception handling in persistent_ram_new()

2024-02-01 Thread Kees Cook
On Thu, Jan 18, 2024 at 03:06:53PM +0100, Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 18 Jan 2024 14:57:21 +0100 > > * Omit an initialisation (for the variable “ret”) > which became unnecessary with this refactoring > because a memory allocation failure will be directly indicate

[PATCH] pstore/ram_core: Improve exception handling in persistent_ram_new()

2024-01-18 Thread Markus Elfring
From: Markus Elfring Date: Thu, 18 Jan 2024 14:57:21 +0100 * Omit an initialisation (for the variable “ret”) which became unnecessary with this refactoring because a memory allocation failure will be directly indicated by a corresponding return statement in an if branch. * Move a call of t