]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: use kvcalloc for array allocations
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 09:57:39 +0000 (04:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Mar 2022 09:36:26 +0000 (04:36 -0500)
commit8ff902162500e8d35845f18f1d066a859f76bea3
tree965f66d3019de0b7f541f8e98b09b1e41c679715
parentb41f8c398e12d3de4956e039682d00beec21e7fd
KVM: use kvcalloc for array allocations

Instead of using array_size, use a function that takes care of the
multiplication.  While at it, switch to kvcalloc since this allocation
should not be very large.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c