Re: [PATCHv2] accel/qaic: kcalloc + kzalloc to kzalloc
From: Youssef Samir
Date: Fri Apr 17 2026 - 12:44:24 EST
On 4/1/2026 11:06 PM, Rosen Penev wrote:
> Consolidate the two-element allocation into a single allocation using a
> flexible array member. This reduces memory fragmentation and simplifies
> the error path by eliminating the need to check for allocation failure
> between the two allocations.
>
> Add __counted_by for runtime bounds checking.
>
I've tested this on AI100 and it works fine.
Tested-by: Youssef Samir <youssef.abdulrahman@xxxxxxxxxxxxxxxx>
Thanks
- Youssef
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---