summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/main.c
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/plugins/dpdk/main.c
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/plugins/dpdk/main.c')
-rw-r--r--src/plugins/dpdk/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/main.c b/src/plugins/dpdk/main.c
index 2bea10185cd..d22b671e008 100644
--- a/src/plugins/dpdk/main.c
+++ b/src/plugins/dpdk/main.c
@@ -125,6 +125,7 @@ dpdk_early_init (vlib_main_t *vm)
check_hugetlb:
alloc.flags = CLIB_MEM_VM_F_SHARED | CLIB_MEM_VM_F_HUGETLB | CLIB_MEM_VM_F_HUGETLB_PREALLOC;
alloc.size = 1;
+ alloc.name = "dpdk_early_init";
if ((err = clib_mem_vm_ext_alloc (&alloc)))
{