Re: [PATCHv3] scsi: st: use kzalloc_array()
From: Damien Le Moal
Date: Mon Jul 06 2026 - 21:23:34 EST
On 7/7/26 08:30, Rosen Penev wrote:
> Merge allocations to simplify memory management with kzalloc_array(). No
> need to kfree separately.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment after allocation as kzalloc_flex() does this with newer
> compilers.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
You forgot to add my review tag. So here it is again.
Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
--
Damien Le Moal
Western Digital Research