From: Laurent Riffard Date: Sun, 11 Jun 2006 06:02:06 +0000 (+0200) Subject: kbuild: fix module.symvers parsing in modpost X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ac545b0f7161eaf2e180acc406c1dd6fdd77686;p=linux-beck.git kbuild: fix module.symvers parsing in modpost read_dump didn't split lines between module name and export type. Signed-off-by: Laurent Riffard Signed-off-by: Sam Ravnborg --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f27ddb841df8..d03c9fff5b2a 100644 --- a/scripts/mod/modpost.c +++ b/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);