Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2467ee0 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

tools/virtio: add kmalloc_array stub



Fixes: 6da2ec56 ("treewide: kmalloc() -> kmalloc_array()")
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 8129e2a1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -52,6 +52,11 @@ static inline void *kmalloc(size_t s, gfp_t gfp)
		return __kmalloc_fake;
	return malloc(s);
}
static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp)
{
	return kmalloc(n * s, gfp);
}

static inline void *kzalloc(size_t s, gfp_t gfp)
{
	void *p = kmalloc(s, gfp);