summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/kprobes.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-20 05:17:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-20 05:17:45 +0300
commitd06838de4a015c7c4844ad3fcf63ad5e2c17b234 (patch)
treeac8c5fa24458e7c6d33ceef89260a955a6ccaac8 /arch/mips/include/asm/kprobes.h
parentd567b0fe2d63aaf5814f1b488a1b05db53f1849e (diff)
parent41f1830f5a7af77cf5c86359aba3cbd706687e52 (diff)
downloadlinux-d06838de4a015c7c4844ad3fcf63ad5e2c17b234.tar.xz
Merge 4.12-rc6 into staging-next
We want the staging fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/include/asm/kprobes.h')
-rw-r--r--arch/mips/include/asm/kprobes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/kprobes.h b/arch/mips/include/asm/kprobes.h
index 291846d9ba83..ad1a99948f27 100644
--- a/arch/mips/include/asm/kprobes.h
+++ b/arch/mips/include/asm/kprobes.h
@@ -43,7 +43,8 @@ typedef union mips_instruction kprobe_opcode_t;
#define flush_insn_slot(p) \
do { \
- flush_icache_range((unsigned long)p->addr, \
+ if (p->addr) \
+ flush_icache_range((unsigned long)p->addr, \
(unsigned long)p->addr + \
(MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
} while (0)