Fix: consumerd: crash occurs when taking snapshot of ust channel
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Oct 2019 19:35:28 +0000 (15:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Oct 2019 19:36:40 +0000 (15:36 -0400)
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 <jeremie.galarneau@efficios.com>

No differences found
This page took 0.026048 seconds and 5 git commands to generate.