aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-12-07 18:35:12 -0800
committerDave Barach <openvpp@barachs.net>2020-12-08 15:29:38 +0000
commitd2fb601022e25055211f6e6ccb960758b8490073 (patch)
tree35b6a99e0ef678a8df19de16612e5c201078cbe8 /src/svm
parent8b55261e954d7c87d2b20740ea70de7773cae3ea (diff)
svm: fix ssvm_va for private segments
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I8288a1ed97b375626d69ac7efa0256211834d89c
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/ssvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index cfdb796c35a..1a677fc5c62 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -404,7 +404,7 @@ ssvm_server_init_private (ssvm_private_t * ssvm)
clib_memset (sh, 0, sizeof (*sh));
sh->heap = heap;
sh->ssvm_size = rnd_size;
- sh->ssvm_va = pointer_to_uword (heap);
+ sh->ssvm_va = pointer_to_uword (sh);
sh->type = SSVM_SEGMENT_PRIVATE;
oldheap = ssvm_push_heap (sh);