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 parameter check
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_memzone.c
diff --git
a/lib/librte_eal/common/eal_common_memzone.c
b/lib/librte_eal/common/eal_common_memzone.c
index
b5a5d72
..
a588012
100644
(file)
--- a/
lib/librte_eal/common/eal_common_memzone.c
+++ b/
lib/librte_eal/common/eal_common_memzone.c
@@
-156,7
+156,7
@@
memzone_reserve_aligned_thread_unsafe(const char *name, size_t len,
}
/* if alignment is not a power of two */
- if (!rte_is_power_of_2(align)) {
+ if (
align &&
!rte_is_power_of_2(align)) {
RTE_LOG(ERR, EAL, "%s(): Invalid alignment: %u\n", __func__,
align);
rte_errno = EINVAL;