diff options
-rw-r--r-- | arch/x86/kernel/kprobes/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/kprobes/opt.c b/arch/x86/kernel/kprobes/opt.c index 0cae7c0f32ec..f55810305f9a 100644 --- a/arch/x86/kernel/kprobes/opt.c +++ b/arch/x86/kernel/kprobes/opt.c | |||
@@ -154,7 +154,6 @@ STACK_FRAME_NON_STANDARD(optprobe_template_func); | |||
154 | static void | 154 | static void |
155 | optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs) | 155 | optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs) |
156 | { | 156 | { |
157 | struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); | ||
158 | unsigned long flags; | 157 | unsigned long flags; |
159 | 158 | ||
160 | /* This is possible if op is under delayed unoptimizing */ | 159 | /* This is possible if op is under delayed unoptimizing */ |
@@ -165,6 +164,7 @@ optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs) | |||
165 | if (kprobe_running()) { | 164 | if (kprobe_running()) { |
166 | kprobes_inc_nmissed_count(&op->kp); | 165 | kprobes_inc_nmissed_count(&op->kp); |
167 | } else { | 166 | } else { |
167 | struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); | ||
168 | /* Save skipped registers */ | 168 | /* Save skipped registers */ |
169 | #ifdef CONFIG_X86_64 | 169 | #ifdef CONFIG_X86_64 |
170 | regs->cs = __KERNEL_CS; | 170 | regs->cs = __KERNEL_CS; |