aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm/ssvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm/ssvm.c')
-rw-r--r--src/svm/ssvm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index 605b692e91f..feba7f93496 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -370,6 +370,12 @@ ssvm_master_init_private (ssvm_private_t * ssvm)
}
#else
heap = create_mspace (rnd_size, 1 /* locked */ );
+ if (heap == 0)
+ {
+ clib_unix_warning ("mheap alloc");
+ return -1;
+ }
+
mspace_disable_expand (heap);
#endif