From: Mathieu Desnoyers Date: Wed, 9 Dec 2020 14:15:46 +0000 (-0500) Subject: Fix: event-notifier: Groups may not have an error counter X-Git-Tag: v2.13.0-rc1~414 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=c30ad764fc2500598086902cf3bd2801b9c05c64;hp=c30ad764fc2500598086902cf3bd2801b9c05c64;p=lttng-ust.git Fix: event-notifier: Groups may not have an error counter Issue ===== If no error counter is attached to an event notifier group, calling the `record_error()` function leads to a NULL pointer dereference. Solution ======== Check if the error_counter field is allocated before dereferencing it. Signed-off-by: Mathieu Desnoyers Change-Id: I124519d37efe8eb20296cfd74027642c8e8162a5 ---