Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:9835
qemu-linux-user.openSUSE_Leap_42.3_Update
0117-xen-disk-use-g_new0-to-fix-build.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0117-xen-disk-use-g_new0-to-fix-build.patch of Package qemu-linux-user.openSUSE_Leap_42.3_Update
From 17f97651ca2d9d2ea94eaf60115684351bc78ced Mon Sep 17 00:00:00 2001 From: Olaf Hering <olaf@aepfle.de> Date: Fri, 28 Jul 2017 15:11:51 +0200 Subject: [PATCH] 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> (cherry picked from commit a3fd781f653db4dc76635715207c9029208634bd) [LD: BSC#1100408] Signed-off-by: Larry Dewey <ldewey@suse.com> --- hw/block/xen_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index 80b1b1a4eb..198ac2ea78 100644 --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -1255,7 +1255,7 @@ static int blk_connect(struct XenDevice *xendev) return -1; } - domids = g_malloc0_n(blkdev->nr_ring_ref, sizeof(uint32_t)); + domids = g_new0(uint32_t, blkdev->nr_ring_ref); for (i = 0; i < blkdev->nr_ring_ref; i++) { domids[i] = blkdev->xendev.dom; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor