All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH lttng-tools] Fix: return NULL pointer on memory allocation failure
@ 2017-05-08 11:48 Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2017-05-08 11:48 UTC (permalink / raw)
  To: jgalar; +Cc: lttng-dev

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
 src/common/buffer-usage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/buffer-usage.c b/src/common/buffer-usage.c
index 49696a3..dfe0d85 100644
--- a/src/common/buffer-usage.c
+++ b/src/common/buffer-usage.c
@@ -231,7 +231,7 @@ struct lttng_condition *lttng_condition_buffer_usage_create(
 
 	condition = zmalloc(sizeof(struct lttng_condition_buffer_usage));
 	if (!condition) {
-		goto end;
+		return NULL;
 	}
 
 	lttng_condition_init(&condition->parent, type);
-- 
2.1.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH lttng-tools] Fix: return NULL pointer on memory allocation failure
       [not found] <1494244132-10812-1-git-send-email-mathieu.desnoyers@efficios.com>
@ 2017-05-09 12:37 ` Jérémie Galarneau
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2017-05-09 12:37 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev, Jeremie Galarneau

Merged in master and stable-2.10, thanks!

Jérémie

On 8 May 2017 at 07:48, Mathieu Desnoyers
<mathieu.desnoyers@efficios.com> wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> ---
>  src/common/buffer-usage.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/common/buffer-usage.c b/src/common/buffer-usage.c
> index 49696a3..dfe0d85 100644
> --- a/src/common/buffer-usage.c
> +++ b/src/common/buffer-usage.c
> @@ -231,7 +231,7 @@ struct lttng_condition *lttng_condition_buffer_usage_create(
>
>         condition = zmalloc(sizeof(struct lttng_condition_buffer_usage));
>         if (!condition) {
> -               goto end;
> +               return NULL;
>         }
>
>         lttng_condition_init(&condition->parent, type);
> --
> 2.1.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-09 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 11:48 [PATCH lttng-tools] Fix: return NULL pointer on memory allocation failure Mathieu Desnoyers
     [not found] <1494244132-10812-1-git-send-email-mathieu.desnoyers@efficios.com>
2017-05-09 12:37 ` Jérémie Galarneau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.