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>
Tue, 5 Nov 2019 03:29:20 +0000 (22:29 -0500)
commitc9b95901694142be2fada10de730b46b3b138b84
tree7d3b9c55d0b44becf52a0d2960b3c8dc7e5e8a80
parent6d7e6cb0b04d89c597b067f8f85224d180af580d
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 <jeremie.galarneau@efficios.com>
src/common/consumer/consumer-metadata-cache.c
This page took 0.024889 seconds and 4 git commands to generate.