Browse Source

kbuild: fix module.symvers parsing in modpost

read_dump didn't split lines between module name and export type.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Laurent Riffard 19 năm trước cách đây
mục cha
commit
9ac545b0f7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/mod/modpost.c

+ 1 - 1
scripts/mod/modpost.c

@@ -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);