Re: [PATCH v2 2/4] livepatch: return -ENOMEM on ptr_id() allocation failure

From: Miroslav Benes
Date: Tue Feb 05 2019 - 08:26:23 EST


On Mon, 4 Feb 2019, Petr Mladek wrote:

> From: Joe Lawrence <joe.lawrence@xxxxxxxxxx>
>
> Fixes the following smatch warning:
>
> lib/livepatch/test_klp_shadow_vars.c:47 ptr_id() warn: returning -1 instead of -ENOMEM is sloppy
>
> Signed-off-by: Joe Lawrence <joe.lawrence@xxxxxxxxxx>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>

Acked-by: Miroslav Benes <mbenes@xxxxxxx>

Miroslav