Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaaae38c authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Sam Ravnborg
Browse files

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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 71378be9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 "