kprobes/x86: Use hlist_for_each_entry() instead of hlist_for_each_entry_safe()
authorMasami Hiramatsu <mhiramat@kernel.org>
Mon, 6 Feb 2017 09:55:43 +0000 (18:55 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 6 Feb 2017 10:07:07 +0000 (11:07 +0100)
commitb6263178b8dbd9fe70d55f136c2a1da39309520e
tree42e895e2732e6ee18a7718446101e0b1601e5544
parentcd1ee3b1e30b4c6c0858e0c0b4ca1b4d86020ada
kprobes/x86: Use hlist_for_each_entry() instead of hlist_for_each_entry_safe()

Use hlist_for_each_entry() in the first loop in the kretprobe
trampoline_handler() function, because it doesn't change the hlist.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/148637493309.19245.12546866092052500584.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kprobes/core.c