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

From: Andy Shevchenko

Date: Fri Mar 13 2026 - 12:08:29 EST


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