]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fix dtrace_helptrace_buffer memory leak
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 10 Feb 2015 17:31:14 +0000 (12:31 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Mon, 20 Apr 2015 08:09:25 +0000 (04:09 -0400)
commitf5eb9e079b1464c0df60ec0578ea12619e447a4d
tree72438fabfd66979be204da21158a79d82c40c697
parent2b5e1380aace4462f1532a7f8431bfa90d599330
dtrace: fix dtrace_helptrace_buffer memory leak

When the help tracing facility is enabled in DTrace, upon loading the
DTrace core module, a buffer was being allocated using vmalloc(), yet
is was never freed upon unloading of the dtrace module.  This caused a
leak of (by default) 64K with every load of the dtrace module.  This
commit ensures that the memory is freed.

The commit also fixes the problem that the help tracing facility
variables in DTrace were defined in two places.

Orabug: 20514336

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/dtrace_dev.c
dtrace/dtrace_dof.c