[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v4 02/11] machine: make MemoryHotpl
From: |
Eduardo Habkost |
Subject: |
Re: [qemu-s390x] [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