Commit cf8afe5c authored by Helge Deller's avatar Helge Deller

parisc: Fix uninitialized variable usage in unwind.c

As noticed by Dave Anglin, the last commit introduced a small bug where
the potentially uninitialized r struct is used instead of the regs
pointer as input for unwind_frame_init(). Fix it.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Reported-by: default avatarJohn David Anglin <dave.anglin@bell.net>
parent 57361846
...@@ -426,7 +426,7 @@ void unwind_frame_init_task(struct unwind_frame_info *info, ...@@ -426,7 +426,7 @@ void unwind_frame_init_task(struct unwind_frame_info *info,
r.gr[30] = get_parisc_stackpointer(); r.gr[30] = get_parisc_stackpointer();
regs = &r; regs = &r;
} }
unwind_frame_init(info, task, &r); unwind_frame_init(info, task, regs);
} else { } else {
unwind_frame_init_from_blocked_task(info, task); unwind_frame_init_from_blocked_task(info, task);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment