mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
LinuxKPI: Add want_init_on_free to linux/mm.h
want_init_on_free returns if heap memory zeroing on free is enabled. FreeBSD does not zeroes heap memory on free(). Sponsored by: Serenity Cyber Security Reviewed by: emaste MFC after: 1 week
This commit is contained in:
parent
f7ea333e2b
commit
56041ee817
1 changed files with 6 additions and 0 deletions
|
|
@ -382,4 +382,10 @@ might_alloc(gfp_t gfp_mask __unused)
|
|||
|
||||
#define is_cow_mapping(flags) (false)
|
||||
|
||||
static inline bool
|
||||
want_init_on_free(void)
|
||||
{
|
||||
return (false);
|
||||
}
|
||||
|
||||
#endif /* _LINUXKPI_LINUX_MM_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue