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/modpost.c | |
parent | 71378be91f5473e89c8be170c6e49edda3bdbb67 (diff) | |
download | kernel_goldelico_gta04-eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6.zip kernel_goldelico_gta04-eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6.tar.gz kernel_goldelico_gta04-eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6.tar.bz2 |
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/modpost.c')
-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 0b92ddf..7e8079a 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 " |