aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-10-13 10:53:26 -0400
committerDave Barach <dave@barachs.net>2016-10-13 10:56:20 -0400
commit241e52222e5e5579516494a8d979b6cc282f4799 (patch)
tree9e188c588358eb559529d51bf97bd06f46f0c843 /vlib
parent0683c9cc130d45f1246be78fa4ebf3f8d7f322bb (diff)
Add clib_mem_alloc_or_null(...)
Change-Id: I5177d6d3349384beb551b4f2f52b30b044ce335b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vlib/vlib/node.c b/vlib/vlib/node.c
index e18567b4184..69bb07f6e41 100644
--- a/vlib/vlib/node.c
+++ b/vlib/vlib/node.c
@@ -375,7 +375,8 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
p = clib_mem_alloc_aligned_at_offset
(sizeof (p[0]) + (1 << log2_n_stack_bytes),
- STACK_ALIGN, STRUCT_OFFSET_OF (vlib_process_t, stack));
+ STACK_ALIGN, STRUCT_OFFSET_OF (vlib_process_t, stack),
+ 0 /* no, don't call os_out_of_memory */ );
if (p == 0)
clib_panic ("failed to allocate process stack (%d bytes)",
1 << log2_n_stack_bytes);