From: Jérémie Galarneau Date: Fri, 26 Feb 2016 20:14:04 +0000 (-0500) Subject: Fix: return negative error code in list_lttng_ust_global_events() X-Git-Tag: v2.8.0-rc1~139 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b12c38dfb3ff3b7333ac79cf06e009199d203957;p=lttng-tools.git Fix: return negative error code in list_lttng_ust_global_events() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 800859b8e..dee7bedf1 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -360,8 +360,8 @@ static int list_lttng_ust_global_events(char *channel_name, *total_size = nb_event * sizeof(struct lttng_event) + extended_len; tmp = zmalloc(*total_size); if (tmp == NULL) { - ret = LTTNG_ERR_FATAL; - goto error; + ret = -LTTNG_ERR_FATAL; + goto end; } extended_at = ((uint8_t *) tmp) + nb_event * sizeof(struct lttng_event);