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 f1d9a2a commit 98d0c8eCopy full SHA for 98d0c8e
arch/x86/kernel/unwind_orc.c
@@ -148,9 +148,6 @@ static struct orc_entry *orc_find(unsigned long ip)
148
{
149
static struct orc_entry *orc;
150
151
- if (!orc_init)
152
- return NULL;
153
-
154
if (ip == 0)
155
return &null_orc_entry;
156
@@ -591,6 +588,9 @@ EXPORT_SYMBOL_GPL(unwind_next_frame);
591
588
void __unwind_start(struct unwind_state *state, struct task_struct *task,
592
589
struct pt_regs *regs, unsigned long *first_frame)
593
590
+ if (!orc_init)
+ goto done;
+
594
memset(state, 0, sizeof(*state));
595
state->task = task;
596
0 commit comments