diff options
author | Helge Deller <deller@gmx.de> | 2018-10-16 08:21:48 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-10-16 11:37:29 +0200 |
commit | cf8afe5c53621eda385be961bc72329a2adcd767 (patch) | |
tree | 4c7025a57124babc92d9916ad9f19b5976a1496a /arch/parisc/kernel/unwind.c | |
parent | 57361846b52bc686112da6ca5368d11210796804 (diff) |
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>
Diffstat (limited to 'arch/parisc/kernel/unwind.c')
-rw-r--r-- | arch/parisc/kernel/unwind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/unwind.c b/arch/parisc/kernel/unwind.c index f329b466e68f..2d14f17838d2 100644 --- a/arch/parisc/kernel/unwind.c +++ b/arch/parisc/kernel/unwind.c @@ -426,7 +426,7 @@ void unwind_frame_init_task(struct unwind_frame_info *info, r.gr[30] = get_parisc_stackpointer(); regs = &r; } - unwind_frame_init(info, task, &r); + unwind_frame_init(info, task, regs); } else { unwind_frame_init_from_blocked_task(info, task); } |