提交 9ac545b0 编写于 作者: L Laurent Riffard 提交者: Sam Ravnborg

kbuild: fix module.symvers parsing in modpost

read_dump didn't split lines between module name and export type.
Signed-off-by: NLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 566f81ca
......@@ -1289,7 +1289,7 @@ static void read_dump(const char *fname, unsigned int kernel)
if (!(modname = strchr(symname, '\t')))
goto fail;
*modname++ = '\0';
if (!(export = strchr(modname, '\t')))
if ((export = strchr(modname, '\t')) != NULL)
*export++ = '\0';
crc = strtoul(line, &d, 16);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册