Skip to content

Commit cf8afe5

Browse files
committed
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>
1 parent 5736184 commit cf8afe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/unwind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ void unwind_frame_init_task(struct unwind_frame_info *info,
426426
r.gr[30] = get_parisc_stackpointer();
427427
regs = &r;
428428
}
429-
unwind_frame_init(info, task, &r);
429+
unwind_frame_init(info, task, regs);
430430
} else {
431431
unwind_frame_init_from_blocked_task(info, task);
432432
}

0 commit comments

Comments
 (0)