[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d4198e3e-cbc0-4b9c-baf6-6aada7decdb6@wdc.com>
Date: Mon, 7 Oct 2024 12:04:43 +0000
From: Johannes Thumshirn <Johannes.Thumshirn@....com>
To: Thorsten Blum <thorsten.blum@...ux.dev>, Satish Kharat
<satishkh@...co.com>, Sesidhar Baddela <sebaddel@...co.com>, Karan Tilak
Kumar <kartilak@...co.com>, "James E.J. Bottomley"
<James.Bottomley@...senPartnership.com>, "Martin K. Petersen"
<martin.petersen@...cle.com>
CC: "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [RESEND PATCH] scsi: fnic: Use vzalloc() instead of vmalloc() and
memset(0)
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.
Powered by blists - more mailing lists