Re: [PATCH 2/2] staging: media: atomisp: use kmalloc_array() for sh_css_blob_info

From: YuChen Lin

Date: Fri Mar 13 2026 - 13:50:04 EST


On Sat, Mar 14, 2026 at 12:04 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxx> wrote:
>
> On Fri, Mar 13, 2026 at 11:29:36PM +0800, Lin YuChen wrote:
> > Replace the open-coded multiplication in kmalloc() with kmalloc_array()
> > to provide overflow protection and improve code readability.
>
> > ---
> > v2:
> > - Remove unnecessary parentheses in kmalloc_array() call as suggested
> > by Andy Shevchenko.
>
> This marked as v1 and 2/2, where is the patch 1, and what is v2 here?
>
> --
> With Best Regards,
> Andy Shevchenko
>
>

Hi Andy,

Sorry for the confusion. I made a mistake in the versioning and numbering
while using git format-patch. This was intended to be v2 of the single patch,
but I incorrectly sent it as v1 2/2.

I will send a clean v3 shortly with the correct headers and changelog
to clear this up.

Thanks, Lin YuChen