qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PATCH v4 02/11] machine: make MemoryHotplug


From: Eduardo Habkost
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH v4 02/11] machine: make MemoryHotplugState accessible via the machine
Date: Thu, 10 May 2018 14:52:22 -0300
User-agent: Mutt/1.9.2 (2017-12-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]