Re: [PATCH] iio: adc: pac1934: Return -ENOMEM on memory allocation failure
From: Andy Shevchenko
Date: Wed Feb 11 2026 - 12:39:22 EST
On Wed, Feb 11, 2026 at 7:10 PM Antoniu Miclaus
<antoniu.miclaus@xxxxxxxxxx> wrote:
>
> devm_kzalloc() returns NULL on allocation failure. The appropriate error
> code for this condition is -ENOMEM, not -EINVAL.
Right, and the memory allocator dumps enough info if it happens.
Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>
--
With Best Regards,
Andy Shevchenko