projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'block-5.13-2021-05-14' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git]
/
virt
/
kvm
/
irqchip.c
diff --git
a/virt/kvm/irqchip.c
b/virt/kvm/irqchip.c
index
2e6fc7c
..
58e4f88
100644
(file)
--- a/
virt/kvm/irqchip.c
+++ b/
virt/kvm/irqchip.c
@@
-184,9
+184,7
@@
int kvm_set_irq_routing(struct kvm *kvm,
nr_rt_entries += 1;
- new = kzalloc(sizeof(*new) + (nr_rt_entries * sizeof(struct hlist_head)),
- GFP_KERNEL_ACCOUNT);
-
+ new = kzalloc(struct_size(new, map, nr_rt_entries), GFP_KERNEL_ACCOUNT);
if (!new)
return -ENOMEM;