[lttng-dev] [PATCH lttng-tools 1/2] Fix: append_list_to_probes(): increment index

Jérémie Galarneau jeremie.galarneau at efficios.com
Wed May 6 12:14:08 EDT 2015


Merged in both master and stable-2.6, thanks!

Jérémie

On Tue, Apr 28, 2015 at 5:08 PM, Philippe Proulx <eeppeliteloop at gmail.com>
wrote:

> Reported-by: Hannes Weisbach <hannes.weisbach at mailbox.tu-dresden.de>
> Signed-off-by: Philippe Proulx <eeppeliteloop at gmail.com>
> ---
>  src/bin/lttng-sessiond/modprobe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/bin/lttng-sessiond/modprobe.c
> b/src/bin/lttng-sessiond/modprobe.c
> index a9035da..d730a1d 100644
> --- a/src/bin/lttng-sessiond/modprobe.c
> +++ b/src/bin/lttng-sessiond/modprobe.c
> @@ -395,7 +395,7 @@ static int append_list_to_probes(const char *list)
>                 /* Length 13 is "lttng-probe-" + \0 */
>                 name_len = strlen(next) + 13;
>
> -               cur_mod = &probes[index];
> +               cur_mod = &probes[index++];
>                 cur_mod->name = zmalloc(name_len);
>                 if (!cur_mod->name) {
>                         PERROR("malloc probe list");
> --
> 2.3.0
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150506/cb5e8f79/attachment.html>


More information about the lttng-dev mailing list