projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: use max between index and nbmem for syscall table realloc
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
syscall.c
diff --git
a/src/bin/lttng-sessiond/syscall.c
b/src/bin/lttng-sessiond/syscall.c
index 95d30d07459dc98d12dfb2ca680f1773cdac7c52..ee7578051e2a12d3322cb6e3d9fd4ae2946da1a7 100644
(file)
--- a/
src/bin/lttng-sessiond/syscall.c
+++ b/
src/bin/lttng-sessiond/syscall.c
@@
-81,7
+81,7
@@
int syscall_init_table(void)
size_t new_nbmem;
/* Double memory size. */
- new_nbmem =
index << 1
;
+ new_nbmem =
max(index, nbmem << 1)
;
DBG("Reallocating syscall table from %zu to %zu entries", nbmem,
new_nbmem);
This page took
0.027836 seconds
and
4
git commands to generate.