git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mem: fix alignment of requested virtual areas
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_memory.c
diff --git
a/lib/librte_eal/common/eal_common_memory.c
b/lib/librte_eal/common/eal_common_memory.c
index
ecc5bb2
..
261fd77
100644
(file)
--- a/
lib/librte_eal/common/eal_common_memory.c
+++ b/
lib/librte_eal/common/eal_common_memory.c
@@
-70,7
+70,7
@@
eal_get_virtual_area(void *requested_addr, size_t *size,
* system page size is the same as requested page size.
*/
no_align = (requested_addr != NULL &&
- ((uintptr_t)requested_addr & (page_sz - 1))
== 0
) ||
+ ((uintptr_t)requested_addr & (page_sz - 1))) ||
page_sz == system_page_sz;
do {