]> git.baikalelectronics.ru Git - kernel.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>
Mon, 21 Mar 2022 13:28:41 +0000 (09:28 -0400)
commitb03667807801ad573c15129e2f77147a6c9a4d99
tree0d798042d2cc2167c43520e25b7ed831a4f87660
parent667d715e5fcd7bcdfe0a6c86c81daff27dfa6350
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