Re: [PATCH] media: atomisp: use kmalloc_objs for array allocations
From: Andy Shevchenko
Date: Tue Apr 21 2026 - 14:08:33 EST
On Tue, Apr 21, 2026 at 7:52 PM Sakari Ailus
<sakari.ailus@xxxxxxxxxxxxxxx> wrote:
> On Thu, Apr 16, 2026 at 09:26:47PM +0300, Andy Shevchenko wrote:
> > On Thu, Apr 16, 2026 at 4:46 PM Pedro Pontes <pontescpedro@xxxxxxxxx> wrote:
> > >
> > > Convert manual kmalloc() multiplications to the modern kmalloc_objs()
> > > interface to improve type safety and prevent potential integer
> > > overflows.
> >
> > There is already a patch doing it in a slightly better way. Have you
> > followed the mailing list?
>
> I must have missed it, too. :-\
https://lore.kernel.org/all/CAHp75VcoNkEQs7QQLDg8xZjdouNc8Yc6Vjg+Pdqb7LViqSKysg@xxxxxxxxxxxxxx/
> > Please, better to help with this driver is to subscribe to the mailing
> > list and review already
> > submitted ones.
--
With Best Regards,
Andy Shevchenko