From: Jérémie Galarneau Date: Wed, 30 Oct 2019 19:35:28 +0000 (-0400) Subject: Fix: consumerd: crash occurs when taking snapshot of ust channel X-Git-Tag: v2.11.1~57 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=c9b95901694142be2fada10de730b46b3b138b84;hp=c9b95901694142be2fada10de730b46b3b138b84;p=lttng-tools.git Fix: consumerd: crash occurs when taking snapshot of ust channel Commit 8e1ef46e8 added an acquisition of the metadata_stream's lock during consumer_metadata_cache_flushed() as stream attributes are used. However, when this function is called, the metadata channel's stream can already be NULL, as indicated by the function's comments. Check if the stream is NULL before attempting to acquire its lock. Signed-off-by: Jérémie Galarneau ---