LinuxKPI: add kfree_sensitive() using zfree().

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D30437
This commit is contained in:
Bjoern A. Zeeb 2021-05-24 18:43:33 +00:00
parent 43b4c00643
commit abcac97f82

View File

@ -198,6 +198,12 @@ kfree(const void *ptr)
free(__DECONST(void *, ptr), M_KMALLOC);
}
static __inline void
kfree_sensitive(const void *ptr)
{
zfree(__DECONST(void *, ptr), M_KMALLOC);
}
static inline size_t
ksize(const void *ptr)
{