Commit 9ac545b0 authored by Laurent Riffard's avatar Laurent Riffard Committed by Sam Ravnborg

kbuild: fix module.symvers parsing in modpost

read_dump didn't split lines between module name and export type.
Signed-off-by: default avatarLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 566f81ca
...@@ -1289,7 +1289,7 @@ static void read_dump(const char *fname, unsigned int kernel) ...@@ -1289,7 +1289,7 @@ static void read_dump(const char *fname, unsigned int kernel)
if (!(modname = strchr(symname, '\t'))) if (!(modname = strchr(symname, '\t')))
goto fail; goto fail;
*modname++ = '\0'; *modname++ = '\0';
if (!(export = strchr(modname, '\t'))) if ((export = strchr(modname, '\t')) != NULL)
*export++ = '\0'; *export++ = '\0';
crc = strtoul(line, &d, 16); crc = strtoul(line, &d, 16);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment