[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200213011406.GI7778@bombadil.infradead.org>
Date: Wed, 12 Feb 2020 17:14:06 -0800
From: Matthew Wilcox <willy@...radead.org>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Cc: Hannes Reinecke <hare@...e.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: advansys: Replace zero-length array with
flexible-array member
On Wed, Feb 12, 2020 at 06:02:11PM -0600, Gustavo A. R. Silva wrote:
> Also, notice that, dynamic memory allocations won't be affected by
> this change:
Shouldn't you also convert this:
asc_sg_head = kzalloc(sizeof(asc_scsi_q->sg_head) +
use_sg * sizeof(struct asc_sg_list), GFP_ATOMIC);
to use struct_size()?
Powered by blists - more mailing lists