We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3539d09 commit cd52edaCopy full SHA for cd52eda
arch/x86/kernel/kprobes/opt.c
@@ -154,7 +154,6 @@ STACK_FRAME_NON_STANDARD(optprobe_template_func);
154
static void
155
optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs)
156
{
157
- struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
158
unsigned long flags;
159
160
/* This is possible if op is under delayed unoptimizing */
@@ -165,6 +164,7 @@ optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs)
165
164
if (kprobe_running()) {
166
kprobes_inc_nmissed_count(&op->kp);
167
} else {
+ struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
168
/* Save skipped registers */
169
#ifdef CONFIG_X86_64
170
regs->cs = __KERNEL_CS;
0 commit comments