[Patch] Use of NULL variable in scripts/mod/modpost.c

From: Eric Sesterhenn
Date: Mon Apr 10 2006 - 18:54:26 EST


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@xxxxxx>

--- 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 "


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/