diff options
Diffstat (limited to 'src/vppinfra/linux/mem.c')
-rw-r--r-- | src/vppinfra/linux/mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c index eb4312b2725..253ae87845b 100644 --- a/src/vppinfra/linux/mem.c +++ b/src/vppinfra/linux/mem.c @@ -91,6 +91,8 @@ clib_mem_create_hugetlb_fd (char *name, int *fdp) char template[] = "/tmp/hugepage_mount.XXXXXX"; u8 *filename; + ASSERT (name); + if (memfd_hugetlb_supported) { if ((fd = memfd_create (name, MFD_HUGETLB)) != -1) |