提交 cb957795 编写于 作者: K Kyle McMartin 提交者: Kyle McMartin

[PARISC] fix null ptr deref in unwind.c

commit ffb45122 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: NKyle McMartin <kyle@parisc-linux.org>
上级 516a9491
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册