Implement support for the kvmalloc_array() function in the LinuxKPI.

Submitted by:	Johannes Lundberg <johalun0@gmail.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-05-31 13:13:08 +00:00
parent f6d4552417
commit f1aa567bfe

View file

@ -131,6 +131,12 @@ kmalloc_array(size_t n, size_t size, gfp_t flags)
return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
}
static inline void *
kvmalloc_array(size_t n, size_t size, gfp_t flags)
{
return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
}
static inline void *
krealloc(void *ptr, size_t size, gfp_t flags)
{