Re: [rtla 01/13] rtla: Check for memory allocation failures

From: Wander Lairson Costa

Date: Fri Nov 28 2025 - 08:53:06 EST


On Fri, Nov 28, 2025 at 10:30 AM Costa Shulyupin <costa.shul@xxxxxxxxxx> wrote:
>
> On Mon, 17 Nov 2025 at 20:54, Wander Lairson Costa <wander@xxxxxxxxxx> wrote:
> > Add checks for the return value of memory allocation functions
> > and return an error in case of failure. Update the callers to
> > handle the error properly.
>
> Would you like to consider using fatal("Out of memory") instead of
> returning an error code?
> Anyway there is no work around for out of memory.
>

Good idea. I am going to update the patches.

> Costa
>