Impact: fix positive failure of branch link on PPC Paul Mackerras pointed out that the test to verify that the modify code is a banch link is incorrect. It was testing the wrong bits. This patch corrects the test. Reported-by: Paul Mackerras Signed-off-by: Steven Rostedt --- arch/powerpc/kernel/ftrace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 81e338c..cc901b1 100644 --- a/arch/powerpc/kernel/ftrace.c +++ b/arch/powerpc/kernel/ftrace.c @@ -131,7 +131,7 @@ static int test_24bit_addr(unsigned long ip, unsigned long addr) static int is_bl_op(unsigned int op) { - return (op & 0xff000000) == 0x48000000; + return (op & 0xfc000003) == 0x48000001; } static int test_offset(unsigned long offset) -- 1.5.6.5 --