On Thu, May 10, 2018 at 06:57:32PM +0200, Paolo Bonzini wrote: [...] > > - machine->device_memory = g_malloc(sizeof(*machine->device_memory)); > > + machine->device_memory = g_malloc0(sizeof(*machine->device_memory)); > > g_new0 since you are at it? :)
Nice suggestion, but this was already merged. I think we have a Coccinelle script that should detect this? -- Eduardo