From: Mathieu Desnoyers Date: Wed, 6 Jun 2018 21:32:26 +0000 (-0400) Subject: Fix: filter interpreter: use LTTNG_SIZE_MAX X-Git-Tag: v2.11.0-rc1~44 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=4efe037b99629804b658b7f50c020c9f27904ceb Fix: filter interpreter: use LTTNG_SIZE_MAX Own macro required for older kernels. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c index 7263ce96..637dd68f 100644 --- a/lttng-filter-interpreter.c +++ b/lttng-filter-interpreter.c @@ -572,7 +572,7 @@ static int dynamic_load_field(struct estack_entry *stack_top) ret = -EINVAL; goto end; } - stack_top->u.s.seq_len = SIZE_MAX; + stack_top->u.s.seq_len = LTTNG_SIZE_MAX; stack_top->u.s.literal_type = ESTACK_STRING_LITERAL_TYPE_NONE; break; @@ -1559,7 +1559,7 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, ret = -EINVAL; goto end; } - estack_ax(stack, top)->u.s.seq_len = SIZE_MAX; + estack_ax(stack, top)->u.s.seq_len = LTTNG_SIZE_MAX; estack_ax(stack, top)->u.s.literal_type = ESTACK_STRING_LITERAL_TYPE_NONE; next_pc += sizeof(struct load_op);