Re: [PATCH v2] media: atomisp: use kmalloc_array() for array space allocation
From: Sakari Ailus
Date: Sat Apr 18 2026 - 04:47:06 EST
On Thu, Aug 21, 2025 at 12:26:39PM +0300, Andy Shevchenko wrote:
> On Thu, Aug 21, 2025 at 04:17:42PM +0800, Qianfeng Rong wrote:
> > Replace kmalloc(count * sizeof(type)) with kmalloc_array() for safer memory
> > allocation and overflow prevention. Additionally, replace sizeof(type) with
> > sizeof(*ptr) to improve code robustness.
>
> LGTM, thanks.
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
I'm afraid this no longer applies to my atomisp branch.
--
Sakari Ailus