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

From: Martin K. Petersen
Date: Thu Jul 11 2019 - 20:20:16 EST



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!

--
Martin K. Petersen Oracle Linux Engineering