On 08.03.22 11:59, Paolo Bonzini wrote:
Linux has dozens of occurrences of vmalloc(array_size()) and vzalloc(array_size()). Allow to simplify the code by providing vmalloc_array and vcalloc, as well as the underscored variants that let the caller specify the GFP flags.
Cc: stable@vger.kernel.org Cc: linux-mm@kvack.org Signed-off-by: Paolo Bonzini pbonzini@redhat.com
Reviewed-by: David Hildenbrand david@redhat.com