Re: [PATCHv2] accel/qaic: kcalloc + kzalloc to kzalloc
From: Jeff Hugo
Date: Tue May 12 2026 - 12:28:05 EST
On 4/1/2026 4: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.
Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Applied to drm-misc-next
-Jeff