aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-04-10 18:54:16 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-04-11 07:37:07 -0400
commiteaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 (patch)
tree2bfe95565bfeac539b651499a6654f8a0a375635 /scripts/mod
parent71378be91f5473e89c8be170c6e49edda3bdbb67 (diff)
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.c2
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,
658 warn("%s - Section mismatch: reference to %s:%s from %s " 658 warn("%s - Section mismatch: reference to %s:%s from %s "
659 "before '%s' (at offset -0x%llx)\n", 659 "before '%s' (at offset -0x%llx)\n",
660 modname, secname, refsymname, fromsec, 660 modname, secname, refsymname, fromsec,
661 elf->strtab + before->st_name, 661 elf->strtab + after->st_name,
662 (long long)r.r_offset); 662 (long long)r.r_offset);
663 } else { 663 } else {
664 warn("%s - Section mismatch: reference to %s:%s from %s " 664 warn("%s - Section mismatch: reference to %s:%s from %s "