mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch] Use of NULL variable in scripts/mod/modpost.c
@ 2006-04-10 22:54 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-04-10 22:54 UTC (permalink / raw)
  To: LKML

hi,

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>

--- linux-2.6.17-rc1/scripts/mod/modpost.c.orig	2006-04-11 00:50:34.000000000 +0200
+++ linux-2.6.17-rc1/scripts/mod/modpost.c	2006-04-11 00:50:47.000000000 +0200
@@ -658,7 +658,7 @@ static void warn_sec_mismatch(const char
 		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 "



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-10 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-10 22:54 [Patch] Use of NULL variable in scripts/mod/modpost.c Eric Sesterhenn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®