]> git.proxmox.com Git - mirror_qemu.git/commit
xen-disk: use g_new0 to fix build
authorOlaf Hering <olaf@aepfle.de>
Fri, 28 Jul 2017 13:11:51 +0000 (15:11 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 21 Sep 2017 02:05:26 +0000 (19:05 -0700)
commita3fd781f653db4dc76635715207c9029208634bd
tree69fa22bfa8b70787617bf0af7d9021f7a926ab7b
parentb62b7ed0fc9c58e373b8946c9bd2e193be98dae6
xen-disk: use g_new0 to fix build

g_malloc0_n is available since glib-2.24. To allow build with older glib
versions use the generic g_new0, which is already used in many other
places in the code.

Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings")

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c