diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-11 00:54:16 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-04-11 13:37:07 +0200 |
commit | eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 (patch) | |
tree | 2bfe95565bfeac539b651499a6654f8a0a375635 /scripts/mod | |
parent | kbuild: fix mode of checkstack.pl and other files. (diff) | |
download | linux-eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6.tar.xz linux-eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6.zip |
kbuild: fix NULL dereference in scripts/mod/modpost.c
before is NULL in this case, concluding from the surrounding code
it seems that after is the right one to use.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 0b92ddff26fd..7e8079a34adf 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -658,7 +658,7 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec, warn("%s - Section mismatch: reference to %s:%s from %s " "before '%s' (at offset -0x%llx)\n", modname, secname, refsymname, fromsec, - elf->strtab + before->st_name, + elf->strtab + after->st_name, (long long)r.r_offset); } else { warn("%s - Section mismatch: reference to %s:%s from %s " |