OSDN Git Service

ftrace: Simplify ftrace_hash_disable/enable path in ftrace_hash_move
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tue, 17 Jun 2014 11:04:42 +0000 (11:04 +0000)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 1 Jul 2014 11:13:34 +0000 (07:13 -0400)
commit5c27c775d5e698d5b754d213747e9fb85290e3b8
tree5bb984d47fddd7d04541ce0c1dda0e68457610d3
parentd8fae2f64433cbe7f0389f965081348272b61ff9
ftrace: Simplify ftrace_hash_disable/enable path in ftrace_hash_move

Simplify ftrace_hash_disable/enable path in ftrace_hash_move
for hardening the process if the memory allocation failed.

Link: http://lkml.kernel.org/p/20140617110442.15167.81076.stgit@kbuild-fedora.novalocal
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c