mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
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: Helge Deller <deller@gmx.de> Reported-by: John David Anglin <dave.anglin@bell.net>
This commit is contained in:
parent
57361846b5
commit
cf8afe5c53
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue