提交 eaaae38c 编写于 作者: E Eric Sesterhenn 提交者: Sam Ravnborg

kbuild: fix NULL dereference in scripts/mod/modpost.c

before is NULL in this case, concluding from the surrounding code
it seems that after is the right one to use.
Signed-off-by: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 71378be9
......@@ -658,7 +658,7 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
warn("%s - Section mismatch: reference to %s:%s from %s "
"before '%s' (at offset -0x%llx)\n",
modname, secname, refsymname, fromsec,
elf->strtab + before->st_name,
elf->strtab + after->st_name,
(long long)r.r_offset);
} else {
warn("%s - Section mismatch: reference to %s:%s from %s "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册