Commit 4650209b authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Ingo Molnar

arm/kprobes: Fix kretprobe test to check correct counter

test_kretprobe() uses jprobe_func_called at the
last test, but it must check kretprobe_handler_called.
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jon Medhurst <tixy@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/150976985182.2012.15495311380682779381.stgit@devboxSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 15bcdc94
...@@ -451,7 +451,7 @@ static int test_kretprobe(long (*func)(long, long)) ...@@ -451,7 +451,7 @@ static int test_kretprobe(long (*func)(long, long))
} }
if (!call_test_func(func, false)) if (!call_test_func(func, false))
return -EINVAL; return -EINVAL;
if (jprobe_func_called == test_func_instance) { if (kretprobe_handler_called == test_func_instance) {
pr_err("FAIL: kretprobe called after unregistering\n"); pr_err("FAIL: kretprobe called after unregistering\n");
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment