Re: [PATCH] kvm: Use struct_size() in kmalloc()

2019-01-30 Thread Gustavo A. R. Silva
On 1/30/19 10:08 AM, Paolo Bonzini wrote: > On 29/01/19 18:20, Gustavo A. R. Silva wrote: >> Hi all, >> >> Friendly ping: >> >> Who can take this? > > I cannot find the original message in my inbox, but I've queued it from > the quote below. > Thank you, Paolo. -- Gustavo

Re: [PATCH] kvm: Use struct_size() in kmalloc()

2019-01-30 Thread Paolo Bonzini
On 29/01/19 18:20, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this? I cannot find the original message in my inbox, but I've queued it from the quote below. Thanks, Paolo > Thanks > -- > Gustavo > > On 1/4/19 10:29 AM, Gustavo A. R. Silva wrote: >> One of the mo

Re: [PATCH] kvm: Use struct_size() in kmalloc()

2019-01-29 Thread Gustavo A. R. Silva
Hi all, Friendly ping: Who can take this? Thanks -- Gustavo On 1/4/19 10:29 AM, Gustavo A. R. Silva wrote: > 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

Re: [PATCH] kvm: Use struct_size() in kmalloc()

2019-01-11 Thread Radim Krčmář
2019-01-04 10:29-0600, Gustavo A. R. Silva: > 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: > > struct foo { > int stuff; >