Re: [RESEND PATCH] scsi: fnic: Use vzalloc() instead of vmalloc() and memset(0)

From: Johannes Thumshirn
Date: Mon Oct 07 2024 - 08:05:05 EST


On 07.10.24 14:02, Thorsten Blum wrote:
> @@ -559,7 +557,7 @@ int fnic_fc_trace_init(void)
> fc_trace_max_entries = (fnic_fc_trace_max_pages * PAGE_SIZE)/
> FC_TRC_SIZE_BYTES;
> fnic_fc_ctlr_trace_buf_p =
> - (unsigned long)vmalloc(array_size(PAGE_SIZE,
> + (unsigned long)vzalloc(array_size(PAGE_SIZE,
> fnic_fc_trace_max_pages));

Casting the vzalloc() shouldn't be needed.