OSDN Git Service

parisc: Fix uninitialized variable usage in unwind.c
authorHelge Deller <deller@gmx.de>
Tue, 16 Oct 2018 06:21:48 +0000 (08:21 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 16 Oct 2018 09:37:29 +0000 (11:37 +0200)
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>
arch/parisc/kernel/unwind.c

index f329b46..2d14f17 100644 (file)
@@ -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);
        }