Re: [PATCH] iio: adc: ti-ads7138: explicitly include <linux/slab.h>
From: Giorgi Tchankvetadze
Date: Mon Apr 27 2026 - 07:32:18 EST
On Fri, Apr 24, 2026 at 8:58 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> > Why do we need to have kmalloc() here at all? I don't understand that.
> Absolutely. Locally it looks like length might be large and therefore
> the array not suitable to be on the stack, but that's not the case.
> length == 2 so the array only has 4 elements and can go on the stack.
>
> >
> > > This function is just overly flexible.
> >
>
Thanks Jonathan and Andy. I have sent v2.