]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/trace/trace.c
tracing: Disable tracers before deletion of instance
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 14 Jan 2014 13:43:01 +0000 (08:43 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Feb 2014 17:13:16 +0000 (12:13 -0500)
commit6b450d2533e2c1c71fbe7f1bdce0bb1c9f813030
tree6e9d9390e712becb76ec8892fd6a6421ec345cca
parente6435e96ec6f31a05690876a19e63e451f7b37e2
tracing: Disable tracers before deletion of instance

When an instance is about to be deleted, make sure the tracer
is set to nop. If it isn't reset the tracer and set it to the nop
tracer, otherwise memory leaks and bad pointers may result.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c