diff options
Diffstat (limited to 'src/svm/svm_fifo_segment.c')
-rw-r--r-- | src/svm/svm_fifo_segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svm/svm_fifo_segment.c b/src/svm/svm_fifo_segment.c index e43c084f63b..a56a714cc83 100644 --- a/src/svm/svm_fifo_segment.c +++ b/src/svm/svm_fifo_segment.c @@ -229,11 +229,11 @@ svm_fifo_segment_create_process_private (svm_fifo_segment_create_args_t * a) u32 rnd_size = 0; int i; - if (a->private_segment_count && a->private_segment_size) + if (a->private_segment_count) { u8 *heap; u32 pagesize = clib_mem_get_page_size (); - rnd_size = (a->private_segment_size + (pagesize - 1)) & ~pagesize; + rnd_size = (a->segment_size + (pagesize - 1)) & ~pagesize; for (i = 0; i < a->private_segment_count; i++) { |