Re: [PATCH v3] staging: media: atomisp: use array3_size() for overflow-safe allocation

From: Andy Shevchenko

Date: Mon Apr 13 2026 - 03:49:17 EST


On Mon, Apr 13, 2026 at 10:35 AM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Sun, Apr 12, 2026 at 3:05 AM Feng Ning <feng@xxxxxxxxx> wrote:

...

> Please, go further, id est
>
> dvs_config->xcoords_y = kvmalloc_objs(sizeof(uint32_t),

It probably should be sizeof-less parameter, I haven't read the macro
definition carefully. Please, double check and use what it requires.

> array_size(width_y, height_y));


--
With Best Regards,
Andy Shevchenko