mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
[PARISC] fix null ptr deref in unwind.c
commit ffb4512276
removed one too many args.
kallsyms_lookup is not safe to call with a NULL *modname. Paper bag over the
problem for the time being.
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
516a949115
commit
cb9577958d
1 changed files with 3 additions and 1 deletions
|
@ -216,8 +216,10 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
|
|||
/* Handle some frequent special cases.... */
|
||||
{
|
||||
char symname[KSYM_NAME_LEN+1];
|
||||
char *modname;
|
||||
|
||||
kallsyms_lookup(info->ip, NULL, NULL, NULL, symname);
|
||||
kallsyms_lookup(info->ip, NULL, NULL, &modname,
|
||||
symname);
|
||||
|
||||
dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname);
|
||||
|
||||
|
|
Loading…
Reference in a new issue