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:
parent
43b4c00643
commit
abcac97f82
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user