[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190712101408-mutt-send-email-mst@kernel.org>
Date: Fri, 12 Jul 2019 10:14:23 -0400
From: "Michael S. Tsirkin" <mst@...hat.com>
To: "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Jason Wang <jasowang@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Stefan Hajnoczi <stefanha@...hat.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
virtualization@...ts.linux-foundation.org,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: virtio_scsi: Use struct_size() helper
On Thu, Jul 11, 2019 at 08:18:54PM -0400, Martin K. Petersen wrote:
>
> Gustavo,
>
> > One of the more common cases of allocation size calculations is finding
> > the size of a structure that has a zero-sized array at the end, along
> > with memory for some number of elements for that array. For example:
>
> Applied to 5.4/scsi-queue, thanks!
Oh I put it in the virtio tree already.
Can't hurt I guess :)
> --
> Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists