Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'probes-fixes-v6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull probes fix from Masami Hiramatsu:

- probe-events: Fix memory leak in parsing probe argument.

There is a memory leak (forget to free an allocated buffer) in a
memory allocation failure path. Fix it to jump to the correct error
handling code.

* tag 'probes-fixes-v6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
tracing/probes: Fix memory leak in traceprobe_parse_probe_arg_body()

+1 -1
+1 -1
kernel/trace/trace_probe.c
··· 1466 1466 parg->fmt = kmalloc(len, GFP_KERNEL); 1467 1467 if (!parg->fmt) { 1468 1468 ret = -ENOMEM; 1469 - goto out; 1469 + goto fail; 1470 1470 } 1471 1471 snprintf(parg->fmt, len, "%s[%d]", parg->type->fmttype, 1472 1472 parg->count);