Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
crypto: add support for aes-ctr+sha-1 chains
[vpp.git]
/
src
/
svm
/
ssvm.c
diff --git
a/src/svm/ssvm.c
b/src/svm/ssvm.c
index
1a677fc
..
f93f40d
100644
(file)
--- a/
src/svm/ssvm.c
+++ b/
src/svm/ssvm.c
@@
-304,9
+304,6
@@
ssvm_client_init_memfd (ssvm_private_t * memfd)
return SSVM_API_ERROR_MMAP;
}
return SSVM_API_ERROR_MMAP;
}
- if (memfd->requested_va)
- mmap_flags |= MAP_FIXED;
-
/*
* Map the segment once, to look at the shared header
*/
/*
* Map the segment once, to look at the shared header
*/
@@
-324,6
+321,9
@@
ssvm_client_init_memfd (ssvm_private_t * memfd)
memfd->ssvm_size = sh->ssvm_size;
munmap (sh, page_size);
memfd->ssvm_size = sh->ssvm_size;
munmap (sh, page_size);
+ if (memfd->requested_va)
+ mmap_flags |= MAP_FIXED;
+
/*
* Remap the segment at the 'right' address
*/
/*
* Remap the segment at the 'right' address
*/