mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
23dfd914d2
If the find_fromsym() call fails and returns NULL, the warn() call will dereference this NULL pointer and cause the program to crash. This happened when I tried to build with "test_user_copy" module. With this fix, it prints lots of warnings like this: WARNING: modpost: lib/test_user_copy: section mismatch in reference: (unknown)+0x4 (section: .text.fixup) -> (unknown) (section: .init.text) masahiroy@kernel.org: The issue is reproduced with ARCH=arm allnoconfig + CONFIG_MODULES=y + CONFIG_RUNTIME_TESTING_MENU=y + CONFIG_TEST_USER_COPY=m Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> |
||
---|---|---|
.. | ||
.gitignore | ||
devicetable-offsets.c | ||
empty.c | ||
file2alias.c | ||
list.h | ||
Makefile | ||
mk_elfconfig.c | ||
modpost.c | ||
modpost.h | ||
sumversion.c | ||
symsearch.c |