projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4669f
)
hyperv: cosmetic: g_malloc -> g_new
author
Roman Kagan
<rkagan@virtuozzo.com>
Fri, 21 Sep 2018 08:18:31 +0000
(11:18 +0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:13 +0000
(13:44 +0200)
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <
20180921081836
.29230-4-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hyperv.c
patch
|
blob
|
history
diff --git
a/target/i386/hyperv.c
b/target/i386/hyperv.c
index 3065d765edf8bfd991e952977f8c71ea4eb6f47e..47368b77c00674b0491ac82def3bcd6e7375c618 100644
(file)
--- 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;