summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Riffard <laurent.riffard@free.fr>2006-06-11 08:02:06 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-16 23:45:45 +0200
commit9ac545b0f7161eaf2e180acc406c1dd6fdd77686 (patch)
tree641d17f54937941fa198c75992491fe1eaac975f /scripts
parent566f81ca598f80de03e80a9a743e94b65b4e017e (diff)
downloadop-kernel-dev-9ac545b0f7161eaf2e180acc406c1dd6fdd77686.zip
op-kernel-dev-9ac545b0f7161eaf2e180acc406c1dd6fdd77686.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index f27ddb8..d03c9ff 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);
OpenPOWER on IntegriCloud