Skip to content
Commit 3000f2e2 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

mm: use vmalloc_array and vcalloc for array allocations



Instead of using array_size or just a multiply, use a function that
takes care of both the multiplication and the overflow checks.

Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a8749a35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment