X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=c535054cc1ca9d09b7a21d56b0f67c38fc18a896;hp=34d3356e99967e68271aa00d460d63bf3103331c;hb=1cbd136b2479ef142bfb339b13d3d25aa772dda5;hpb=8cc65d5cbccb6e4ba91c4de0efc3e974a6ca61b5 diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 34d3356e9..c535054cc 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -179,7 +179,7 @@ int kernctl_syscall_mask(int fd, char **syscall_mask, uint32_t *nr_bits) goto end; } - array_alloc_len = ALIGN(kmask_len.len, 8) >> 3; + array_alloc_len = lttng_align_ceil(kmask_len.len, 8) >> 3; kmask = zmalloc(sizeof(*kmask) + array_alloc_len); if (!kmask) {