aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-10-22 10:59:45 +0200
committerDamjan Marion <dmarion@me.com>2018-10-22 09:56:52 +0000
commit430634c457da5dd04f481da0118bab581ace732e (patch)
tree5a37397f88533838dcff2a8dd4bfd234bce6065a /src/vppinfra
parent95b1b10e54545132ba55821e32c2f1a48d0e0e16 (diff)
Fix dereferencing null string in dpdk_early_init
Change-Id: Iffba7ebe5af8fadc0251f3a10022739d45f394ce Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/linux/mem.c2
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)