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
test/security: check session update
[dpdk.git]
/
app
/
test
/
test_memzone.c
diff --git
a/app/test/test_memzone.c
b/app/test/test_memzone.c
index
4d87444
..
0343b03
100644
(file)
--- a/
app/test/test_memzone.c
+++ b/
app/test/test_memzone.c
@@
-475,7
+475,8
@@
find_max_block_free_size(unsigned int align, unsigned int socket_id)
struct rte_malloc_socket_stats stats;
size_t len, overhead;
- rte_malloc_get_socket_stats(socket_id, &stats);
+ if (rte_malloc_get_socket_stats(socket_id, &stats) < 0)
+ return 0;
len = stats.greatest_free_size;
overhead = MALLOC_ELEM_OVERHEAD;