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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux