From: Mathieu Desnoyers Date: Tue, 30 Jun 2020 14:29:19 +0000 (-0400) Subject: Fix: callstack: NULL pointer dereference: length field also need fdata X-Git-Tag: v2.13.0-rc1~205 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=68599fecc9f3697e82bf7fe0a6b7e8aed33ad330;p=lttng-modules.git Fix: callstack: NULL pointer dereference: length field also need fdata Signed-off-by: Mathieu Desnoyers --- diff --git a/src/lttng-context-callstack.c b/src/lttng-context-callstack.c index 6b75772e..b0f7a2fe 100644 --- a/src/lttng-context-callstack.c +++ b/src/lttng-context-callstack.c @@ -146,6 +146,7 @@ int __lttng_add_callstack_generic(struct lttng_ctx **ctx, field->type.u.integer.encoding = lttng_encode_none; length_field->get_size_arg = lttng_callstack_length_get_size; length_field->record = lttng_callstack_length_record; + length_field->priv = fdata; field = &sequence_field->event_field; field->name = ctx_name;