Re: [PATCHv2] scsi: st: use kzalloc_array()
From: Damien Le Moal
Date: Sat Jul 04 2026 - 23:15:04 EST
On 7/4/26 06:53, Rosen Penev wrote:
> Merge allocations to simpily memory management with kzalloc_array(). No
s/simpily/simplify
> 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>
With the typo fixed, this looks OK to me.
Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
--
Damien Le Moal
Western Digital Research