[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 3/8] hyperv: cosmetic: g_malloc -> g_new
From: |
Roman Kagan |
Subject: |
[Qemu-devel] [PATCH v2 3/8] hyperv: cosmetic: g_malloc -> g_new |
Date: |
Fri, 21 Sep 2018 11:18:31 +0300 |
Signed-off-by: Roman Kagan <address@hidden>
---
target/i386/hyperv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/hyperv.c b/target/i386/hyperv.c
index 3065d765ed..47368b77c0 100644
--- a/target/i386/hyperv.c
+++ b/target/i386/hyperv.c
@@ -88,7 +88,7 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index,
uint32_t sint,
HvSintRoute *sint_route;
int r, gsi;
- sint_route = g_malloc0(sizeof(*sint_route));
+ sint_route = g_new0(HvSintRoute, 1);
r = event_notifier_init(&sint_route->sint_set_notifier, false);
if (r) {
goto err;
--
2.17.1
- [Qemu-devel] [PATCH v2 0/8] hyperv: refactor HvSintRoute management, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 2/8] hyperv_testdev: drop unnecessary includes, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 1/8] hyperv_testdev: refactor for better maintainability, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 3/8] hyperv: cosmetic: g_malloc -> g_new,
Roman Kagan <=
- [Qemu-devel] [PATCH v2 4/8] hyperv: synic: only setup ack notifier if there's a callback, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 5/8] hyperv: allow passing arbitrary data to sint ack callback, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 6/8] hyperv: address HvSintRoute by X86CPU pointer, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 8/8] hyperv: rename kvm_hv_sint_route_set_sint, Roman Kagan, 2018/09/21
- [Qemu-devel] [PATCH v2 7/8] hyperv: make HvSintRoute reference-counted, Roman Kagan, 2018/09/21