Thread (1 message) 1 message, 1 author, 2019-07-12

Re: [PATCH] scsi: virtio_scsi: Use struct_size() helper

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2019-07-12 14:14:23

On Thu, Jul 11, 2019 at 08:18:54PM -0400, Martin K. Petersen wrote:
Gustavo,
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help