aboutsummaryrefslogtreecommitdiffstats
path: root/svm
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 /svm
parent0683c9cc130d45f1246be78fa4ebf3f8d7f322bb (diff)
Add clib_mem_alloc_or_null(...)
Change-Id: I5177d6d3349384beb551b4f2f52b30b044ce335b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'svm')
-rw-r--r--svm/svm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/svm/svm.h b/svm/svm.h
index 5b95abb66ba..0b87dbcbc64 100644
--- a/svm/svm.h
+++ b/svm/svm.h
@@ -149,7 +149,8 @@ svm_mem_alloc_aligned_at_offset (svm_region_t * rp,
pthread_mutex_lock (&rp->mutex);
oldheap = clib_mem_set_heap (rp->data_heap);
- rv = clib_mem_alloc_aligned_at_offset (size, align, offset);
+ rv = clib_mem_alloc_aligned_at_offset (size, align, offset,
+ 1 /* yes, call os_out_of_memory */ );
clib_mem_set_heap (oldheap);
pthread_mutex_unlock (&rp->mutex);
return (rv);